|
javac: file not found: *.java
Usage: javac <options> <source files>
use -help for a list of possible options
Druk op een toets om door te gaan. . .
i;ve jdk everything still saying this bullshit when i compile
whyyy
its in bin map tbh
@echo off
Title Compiler
"C:\Program Files\Java\jdk1.6.0_24\bin\javac.exe" *.java
pause
still gettin error..
@echo off
Title Compiler
"C:\Program Files\Java\jre7\bin\java.exe" *.java
pause
Try that, change jre version according to yours.
Exception in thread "main" java.lang.NoClassDefFoundError: */java
Caused by: java.lang.ClassNotFoundException: *.java
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
Could not find the main class: *.java. Program will exit.
Druk op een toets om door te gaan. . .
?
Your compiler cannot find any .java files if you they are in a seperate file other than your compiler, for example: Compiler is in Source file and the Java files are in a Folder called Java in the Source folder you need to add something like this under the Title
Code:cd ./Where you load your java files folder/
the compiler (this one witth the erorr) is in bin folder..
the other one works
but idk why this one dont and there are class files not java
To be honest... there is one simple fix for this... Use an IDE
ok why it says run tbh
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |