Jeg får følgende fejl: Exception in thread "main" java.lang.ClassNotFoundException: lyd at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:83)
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>javac lyd.java
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>java lyd Exception in thread "main" java.lang.NoClassDefFoundError: lyd
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src> C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>dir Disken i drev C har ikke noget navn. Diskens serienummer er 24E8-C2C3
Indhold af C:\Documents and Settings\Kristian\IdeaProjects\lyd\src
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>javac SoundTest javac: invalid flag: SoundTest Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are u sed -classpath <path> Specify where to find user class files -cp <path> Specify where to find user class files -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -d <directory> Specify where to place generated class files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version -version Version information -help Print a synopsis of standard options -X Print a synopsis of nonstandard options -J<flag> Pass <flag> directly to the runtime system
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>javac SoundTest.java
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>java Soundtest Exception in thread "main" java.lang.NoClassDefFoundError: Soundtest
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>java SoundTest Exception in thread "main" java.lang.NoClassDefFoundError: SoundTest
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>java SoundTes.classt Exception in thread "main" java.lang.NoClassDefFoundError: SoundTes/classt
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>java SoundTes.class Exception in thread "main" java.lang.NoClassDefFoundError: SoundTes/class
C:\Documents and Settings\Kristian\IdeaProjects\lyd\src>cd..
C:\Documents and Settings\Kristian\IdeaProjects\lyd>cd..
C:\Documents and Settings\Kristian\IdeaProjects>cd soundtest
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest>javac SoundTest.java error: cannot read: SoundTest.java 1 error
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest>dir Disken i drev C har ikke noget navn. Diskens serienummer er 24E8-C2C3
Indhold af C:\Documents and Settings\Kristian\IdeaProjects\SoundTest
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest\src>Java SoundTest Exception in thread "main" java.lang.NoClassDefFoundError: SoundTest
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest\src>java SoundTest Exception in thread "main" java.lang.NoClassDefFoundError: SoundTest
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest\src>java SoundTest.cla ss Exception in thread "main" java.lang.NoClassDefFoundError: SoundTest/class
C:\Documents and Settings\Kristian\IdeaProjects\SoundTest\src>
Jeg har lige søgt lidt rundt omkring, og det ser ud til at der er flere der har problemer med at afspille wav-filer. Det er vist noget med at det format kan komprimeres (uden at jeg rigtig har forstand på det) og derfor er der problemer med at køre det i Java.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.