Hello Guest

Help with Install i am desperet

  • 7 Replies
  • 8570 Views
Help with Install i am desperet
« on: June 29, 2009, 12:15:28 »
Ok i start first with Dawnload the LWJGL 2.1 v



Then i open the JCreator LE and  crete new Progect

OK



Progect properties

and den i add the path from my DESCTOP



And when i create a new class and try to import  for example   


import org.lwjgl.BufferChecks;

i get the erorr   " package org.lwjgl does not exist"


PLS help me you are my final chans

i have ERORR some were but were


Re: Help with Install i am desperet
« Reply #1 on: June 29, 2009, 13:46:09 »
Classpath looks into Folders and Jars for .class files. That is when adding a Folder (LWJGL/jar) it will attempt to load all .class files, but not .jar. Therefore you should try to set the required libraries with .jar files and not folders. ;)

Re: Help with Install i am desperet
« Reply #2 on: June 30, 2009, 07:12:12 »
OK i made it  but for chek i try to compile one  Space Invader code 

 http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/examples/spaceinvaders/Game.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&pathrev=HEAD


but i have this eror in JCreator

Note: C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Mixo\Game[1].java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Process completed.



What to do 

*

Offline Matzon

  • *****
  • 2242
Re: Help with Install i am desperet
« Reply #3 on: June 30, 2009, 07:18:56 »
afaik, thats just a warning...
else add @SuppressWarning at the proper places

Re: Help with Install i am desperet
« Reply #4 on: June 30, 2009, 07:51:18 »
OK but i got this


Re: Help with Install i am desperet
« Reply #5 on: June 30, 2009, 08:20:45 »
OK i made it  but for chek i try to compile one  Space Invader code 

...

but i have this eror in JCreator

Note: C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Mixo\Game[1].java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Process completed.



What to do 

That's most likely because the class uses untyped ArrayLists. ArrayLists are generic containers and can be specified to only accept a certain class. It's a Java 1.5+ feature. If no type is specified the compiler generates this warning. Add a type where the warning occurs (e.g. ArrayList<SomeClass>) or ignore/suppress the warning. The former is usually preferable ;)

OK but i got this
...

Add -Djava.library.path=PATH_TO_YOUR_NATIVE_LWJGL_DLLS to the runtime parameters of you project.

Re: Help with Install i am desperet
« Reply #6 on: June 30, 2009, 08:36:36 »
Whit risk to became  annoying   

 I thing this is the RUN proparties

 


ok  i add  -Djava.library.path=C:\Documents and Settings\Limona\Desktop\lwjgl-2.1.0\lwjgl-2.1.0\native\windows

but nothing  maybe i have a  mistake  i actualy never work directly with a  classpath   only with IDE

what to do naw

Re: Help with Install i am desperet
« Reply #7 on: June 30, 2009, 10:29:38 »
ok  i add  -Djava.library.path=C:\Documents and Settings\Limona\Desktop\lwjgl-2.1.0\lwjgl-2.1.0\native\windows

If you have spaces in your path, you have to enclose it in "", e.g.:
-Djava.library.path="C:\Documents and Settings\Limona\Desktop\lwjgl-2.1.0\lwjgl-2.1.0\native\windows"

I don't use JCreator so I don't really know if this is the right place. The parameter has to be passed to the VM, not your application. Since the classpath parameter is there, it looks like it's the right place.