Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (778)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  classpath issues Linux  (Read 2181 times)
0 Members and 1 Guest are viewing this topic.
Offline flipperke

Junior Devvie





« Posted 2008-01-18 07:54:12 »

Hello,

I'm recently having the following problem.
When I try to compile a program with
1  
javac -classpath "/home/nico/extrajars/jogl/*:." HoofdDraad.java

the following message appears:
1  
incorrect classpath: /home/nico/extrajars/jogl/*

This used to work for me!
Both gluegen-rt.jar and jogl.jar are in /home/nico/extrajars/jogl/   ,
Normally I compile java-programs in Eclipse, so it can be that this problem is not that recent.

I can run programs with
1  
java -classpath "/homenico/extrajars/jogl/*:." HoofdDraad


java -version gives me
1  
2  
3  
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

and I'm working with Xubuntu 7.04.

I believe it's a bug but I'm unsure.
Offline ryanm

Senior Devvie


Projects: 1
Exp: 15 years


Used to be bleb


« Reply #1 - Posted 2008-01-18 08:24:14 »

I would guess that java doesn't know what to do with the * character. Does it work if you manually specify each jar?
Offline flipperke

Junior Devvie





« Reply #2 - Posted 2008-01-18 09:32:56 »

It works that way.
Still strange, it used to work with *    and
1  
java -classpath "/homenico/extrajars/jogl/*:." HoofdDraad


also doesn't give any problems.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ryanm

Senior Devvie


Projects: 1
Exp: 15 years


Used to be bleb


« Reply #3 - Posted 2008-01-18 10:13:10 »

It is odd. The man pages say that javac can deal with the *, exactly as java does. What has changed since this command last worked for you?
Offline flipperke

Junior Devvie





« Reply #4 - Posted 2008-01-18 10:24:45 »

I've been using eclipse for a while(couple of months), so I didn't need the command-line (actually, I use Geany for small programs), so I don't really know what could have been changed, maybe java-build?
Am I the only one witch this 'problem' ?
Offline ryanm

Senior Devvie


Projects: 1
Exp: 15 years


Used to be bleb


« Reply #5 - Posted 2008-01-18 12:10:38 »

It works for me. Testing with lwjgl jars, I steal the DisplayTest source, remove the package declaration, and get

1  
2  
3  
4  
5  
6  
7  
8  
9  
ryanm@windfall:~/test$ pwd
/home/ryanm/test
ryanm@windfall:~/test$ ls
DisplayTest.java  lwjgl-1.1.3  lwjgl-1.1.3.zip
ryanm@windfall:~/test$ javac -classpath "/home/ryanm/test/lwjgl-1.1.3/jar/*:." DisplayTest.java
ryanm@windfall:~/test$ ls
DisplayTest.class  DisplayTest.java  lwjgl-1.1.3  lwjgl-1.1.3.zip
ryanm@windfall:~/test$ javac -version
javac 1.6.0_03


A though occurs: *Ubuntu ships by default with GIJ installed. Did you remove this when you installed Sun's java? Maybe there's been some snafu and the gnu javac is on the PATH before Sun's? Try "javac -version" to test. Completely clutching at straws here, but worth eliminating.

edit: also, I've never seen a "incorrect classpath" error. IME when the classpath is wrong you just get loads of compile errors for the missing types.
Offline flipperke

Junior Devvie





« Reply #6 - Posted 2008-01-18 12:32:09 »

It works again  Cheesy

I had to remove ejc too to make it happen.

javac -version did gave me
1  
2  
3  
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)


Oh yes, it did give all those compile-errors too.

Thanks alot
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (350 views)
2018-11-16 13:46:03

hadezbladez (183 views)
2018-11-16 13:41:33

hadezbladez (349 views)
2018-11-16 13:35:35

hadezbladez (85 views)
2018-11-16 13:32:03

EgonOlsen (2179 views)
2018-06-10 19:43:48

EgonOlsen (2221 views)
2018-06-10 19:43:44

EgonOlsen (1379 views)
2018-06-10 19:43:20

DesertCoockie (2012 views)
2018-05-13 18:23:11

nelsongames (1671 views)
2018-04-24 18:15:36

nelsongames (2309 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!