nxjc problem no source files

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

nxjc problem no source files

Postby jvance » Wed Aug 15, 2007 10:10 pm

Hi everybody, I am trying to compile the Tune.java program but every time I type nxjc Tune.java javac says that there are no source files. I don't understand this. Javac works fine for all my other java files so I don't get it.
Help please?
Thanks
Vance
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby jvance » Thu Aug 16, 2007 11:11 pm

I reinstalled my JRE, JDK(now 6) and lib usbwin32 in directories with no namespaces, but I still cannot compile anything with nxjc. It still says no source files.
Help me please!!
Vance
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby bbagnall » Mon Aug 20, 2007 4:13 pm

Can you copy and paste your entire error message here? Thanks.

This is just a quick guess, but possibly your classpath setting needs to have a . at the start. e.g.

.;C:\j2sdk1.4.2_12\jre\lib\rt.jar;{other stuff}
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

Re:

Postby jvance » Sat Aug 25, 2007 6:15 pm

bbagnall wrote:Can you copy and paste your entire error message here? Thanks.

This is just a quick guess, but possibly your classpath setting needs to have a . at the start. e.g.

.;C:\j2sdk1.4.2_12\jre\lib\rt.jar;{other stuff}


Here is the error message. Sorry I took so long.

C:\lejos_nxj\samples\Tune>dir
Volume in drive C has no label.
Volume Serial Number is 4019-EFF7

Directory of C:\lejos_nxj\samples\Tune

08/10/2007 09:59 PM <DIR> .
08/10/2007 09:59 PM <DIR> ..
07/15/2007 02:27 PM 2,942 build.xml
07/15/2007 02:27 PM 845 Tune.java
07/15/2007 02:27 PM 1,825 Tune.nxj
3 File(s) 5,612 bytes
2 Dir(s) 49,898,508,288 bytes free

C:\lejos_nxj\samples\Tune>nxjc Tune.java
javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options

C:\lejos_nxj\samples\Tune>

There it is. I typed dir to show that Tune.java does exist in the directory. I do have a . in my CLASSPATH here it is.

.;"i\QTJava.zip";.;C:\

Thanks for the guess, but I didn't help.
Thanks for your reply.
Vance
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby bbagnall » Sun Aug 26, 2007 5:30 pm

Did you install one of the more recent versions of the Sun JDK? i.e. 1.5 or 1.6

Did you set nxj_home to the location of your leJOS NXJ install directory? Make sure the JDK and leJOS aren't installed somewhere with spaces in the directory name e.g. Program Files.

The spaces problem should go away with the next release.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

RE

Postby jvance » Sat Sep 01, 2007 6:46 pm

I have a jdk and jre 6 installed and I set nxj_home to the root directory of the nxj file.
C:\lej\lejos_NXJ_win32_0_3_0alpha\lejos_nxj
I think I'll wait until the next release comes out maybe that will solve my problem.
Thx
Vance
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am

Postby lawrie » Sun Sep 02, 2007 10:40 am

Your problem is probably caused by the quotes in "i\QTJava.zip" in your classpath.

Try doing:
set CLASSPATH=.

and then calling nxjc.

This might be fixed in the next release as we have removed unnecessary quotes in the nxjc.bat file.
lawrie
leJOS Team Member
 
Posts: 922
Joined: Mon Feb 05, 2007 1:27 pm

Thanks

Postby jvance » Wed Sep 05, 2007 1:25 am

Thanks some much for your suggestion. Nxjc works great now!!! I tested out Tune and View and I think I'm going to test some more then start programming!!! Thanks for the help. This is great!!! Good bye NXG :D :D :D :D :D
Vance
Did I say thanks?
jvance
New User
 
Posts: 22
Joined: Sun Aug 12, 2007 2:22 am


Return to NXJ Software

Who is online

Users browsing this forum: skoehler and 3 guests

more stuff