RuneScape 2 Development > Server Help

ALL COMPILER/COMPILING RELATED QUESTIONS GO HERE

<<< (210/323) >>>

Mod Brandon12111:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/M
ain
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.sun.tools.javac.Main.  Program will exit.
Press any key to continue . . . 
I have no idea what's wrong, This is what my compiler looks like.
@echo off
title Twiztid Compiler
"C:\Program Files\Java\jdk1.6.0_18\bin\javac.exe" -cp . *.java
pause

99purepk99:
i need the latest compiler code please, i have 6u18 jdk

Zanzibar:

--- Quote from: 99purepk99 on March 07, 2010, 04:26:45 PM ---i need the latest compiler code please, i have 6u18 jdk

--- End quote ---

--- Code: [email protected] off
javac *.java
pause
--- End code ---

scipyo:
I just made a command in my server but it wont let me compile it.
When I compile i get:
_________________________________________
javac: file not found: *.java
Usage: javac <options> <source files>
use -help for a list of possible options
Finished!
Press any key to continue . . .

_________________________________________

The code for the compiler im using is this.

@echo off
title Compiler
if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
"%programfiles%\Internet Explorer\iexplore.exe" http://www.oracle.com/technetwork/java/javase/downloads/index.html
:end
echo Finished!
pause
exit

MrPurple436648:
It says

'"C:\Program Files (x86)\Java\jdk1.6.0_18"' is not recognized as a internal or external command.
operable program or batch file.
' "C:\Program Files (x86)\Java\jre6: ' is not recognized as a internal or external command,
operable program or batch file.
Press any key to continue. . .

what you think?

These are my Variables:

Variables For Administrator:
CLASSPATH:     CLASSPATH=C:\Program Files\Java\jdk1.6.0_18\bin;%CLASSPATH%;
PATH:    C:\Program Files\Java\jdk1.6.0_18\bin;

System Variables:
CLASSPATH:     ;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
Path:     C:\Program Files\Java\jdk1.6.0_18\bin

I think it is my: ;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Because when i go to: ;C:\Program Files\Java\jre6\lib\ext
There is no QTJava.zip

There is:

dnsns.jar
localedata.jar
medta-index
sunjce_provider.jar
sunmscapi.jar
sunpkcs11.jar






Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version
Powered by SMFPacks SEO Pro Mod |