Java compilers....quick question

Status
You're currently viewing only hellfire's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
Hello All,

This is officially an emergency... :eek:
I want to compile a JAVA program which has modules from other places in jar format... the location of all files is in e:\mydir\ and java jdk1.3 is on e:\jdk1.3 (win98se box)

=======================
DIR e:\mydir

my1.java
my2.java
.
.
myn.java

Acme.jar
Another.jar
========================

This is what I do...
javac -classpath:e\mydir\Acme.jar;e\mydir\Another.jar;. *.java

It says invalid flag.... -classpath

When I do...
javac -classpath e\mydir\Acme.jar;e\mydir\Another.jar;. *.java
(no colon after -classpath) it compiles but gives errors...IT IS A FACT that the code is bug free and compilable...

How do u use claspath and .jar together ?

Regards,
hellfire
 
My autoexec file
....
SET PATH="E:\MATLAB\BIN";E:\68KSIM~1;E:\JDK1.3\BIN;E:\TERATERMPRO\
SET CP = E:\csc444\Acme.jar;E:\csc444\xerces.jar

PATH=%PATH%;%CP%;F:\SSHSEC~1
<THE END>

I have zero experience with writing these scripts...so any help is appreciated.

Thx,
hellfire

[Edit] COOL New Error
Using gubmo's suggestion i used bootclasspath like so:
javac -bootclasspath e:\mydir\Acme.jar;e:\mydir\Another.jar;. *.java

and got the following:
Fatal error: Unable to locate package java.lang in classpath or bootclasspath
 
...for all your help. I have sorted out the problem...rather it sorted itself out. :p As somewhere through the middle of the posts it was mentioned, the syntax was right, but, ...please dont kill me... , I didnt include one of the files required to compile. :eek:

But sifting through the juggernauts of the manuals, I did learn a few new things, like COME HERE FIRST :D (just kidding!!) So now, after loss of 50% of my hair, I installed Forte,lol, and now the Filesystems Tab on my Explorer is missing...

Got to figure how to get that back...sigh

Again, thx very much

Regards,
hellfire

Coding is like a pandora's box, you never know what you are standing in until you take a good whiff.

[This message was edited by hellfire on November 12, 2001 at 00:46.]
 
Status
You're currently viewing only hellfire's posts. Click here to go back to viewing the entire thread.
Not open for further replies.