I wanted to try and use the java monkey engine for a while but ultimately decided to use it yesterday however due to so many problems it took me until a couple of minutes ago to finnaly compile it however I got to the end of the installation tutorial and I realized I got bash messages though i ran it by copy and paste. I want to know if this is how JME runs or if something is wrong
from the jme directory in the terminal console
java wrote:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
-su: ./lib/jogg-0.0.5.jar: No such file or directory
-su: ./lib/jorbis-0.0.12.jar: No such file or directory
-su: ./target/jme.jar: Permission denied
-su: ./target/jmetest.jar: Permission denied
-su: ./target/jmetest-data.jar: No such file or directory
java wrote:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
-su: ./lib/jogg-0.0.5.jar: No such file or directory
-su: ./lib/jorbis-0.0.12.jar: No such file or directory
-su: ./target/jme.jar: Permission denied
-su: ./target/jme-effects.jar: Permission denied
-su: ./target/jme-model.jar: Permission denied
-su: ./target/jme-sound.jar: No such file or directory
-su: ./target/jme-terrain.jar: Permission denied
-su: ./target/jmetest.jar: Permission denied
-su: ./target/jmetest-data.jar: No such file or directory
it also looks like some of your libraries might not be in the subdirectories of the directory you're trying to run it from - so you should correct those paths as well:
-su: ./lib/jogg-0.0.5.jar: No such file or directory
-su: ./lib/jorbis-0.0.12.jar: No such file or directory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[/quote]
how would i correct the paths i'm still semi new to linux should i just cut and paste the folders and is their an external place to get the files I need
You can use the draft to see if it's working, but after that I suggest you follow the instructions to set up eclipse and compile the jars so you have the most recent version (a lot of features and fixes have been added since the draft version). If you want I can upload my current jars, but it would be better if you could keep your own build current.
oh i had thought eclipse was a another distribution, its just a app rite so i would be able to compile my files on kubuntu and import it into the app for further development correct?
Yes, eclipse is just an IDE, you can use it to download the current source from the CVS and compile/run it. I personally just use eclipse to download and browse the code, and use ant to compile it directly. (you can also run the ant script from eclipse as well)
wow i wish i knew that from yesterday cuz i took most my time trying to get a CVS client to work on kubuntu until i realized i dled it earlier that day before using the terminal also is it safe when a new jme comes out to just dl it over the current one i have and compile it?
edit: wait I already have jme installed on my comp should i delete the folder its in on my comp d/l eclipse and then redownload it and compile it??
also should i move the whole jme folder and lwjgl folder into the lib folder in java when i get them??
6. Rename the jar folder to lwjgl and move that to java's lib folder as with the JME files
also should I dl
Eclipse IDE for Java Developers - Linux (79 MB) wrote:
The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor and Mylyn. Find out more...
Eclipse Classic 3.3.2 - Linux (137 MB) wrote:
The classic Eclipse download: the Eclipse Platform, Java Development Tools, and Plug-in Development Environment, including source and both user and programmer documentation. Find out more...
If you are using eclipse only you don't need to move all the files around, the tutorial walks you through how to set them up in eclipse - if you aren't using eclipse to compile your project (and are using something like the terminal) then you probably need to set your system up using the steps I outlined in an earlier post, unless you intend to specify your libraries on the command line each time you compile/run your project.
I compile my projects on the terminal, so I prefer to set up my libraries as I outlined in the step by step tutorial. For clarity, here are the paths to each of my file types:
files from lwjgl native/linux folder - /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/lwjgl
remember, the libraries don't just magically work if you put them in the folders, you have to set your CLASSPATH and LD_LIBRARY_PATH in a similar way to what I explained in my tutorial steps…
EDIT:
The eclipse I installed is the one from the ubuntu repository. If you prefer to install from the eclipse website I think it is comparable to Eclipse Classic 3.3.2
which eclipse IDE to D/L, Eclipse IDE for Java Developers or Eclipse Classic 3.3.2 (links in previous post), Eclipse seems a lot easier to use but I think i'll keep using kubuntu instead of using my Windows OS and run Eclipse off of it because I understand linux in general is better to program java under
so with eclipse I don't have to change around the directories or set the home paths correct
I think you should just be able to go to add/remove applications in the kubuntu menu and type eclipse in the search box. If not then please read the edit on my previous post
2 things every time i d/l the jme thing and its says building the environment in the lower right hand corner an error comes up syaing out of memory is this okay because it happened 3 times and i've deleted the workspace folder each time to retry it also i'm unable to get bac to the welcome page after i exit out of welcome or if i go to another window the tab disappears lastly how to I perform the Configure the jME Project in the tutorial I don;t see jme projects
Right click on your applications menu and select the edit menus option. Then find the eclipse launcher icon and right click on it and go to properties.
Yes, the project should show up in your package explorer (if it isnt open you can go to Window > Show View > Package Explorer). Just right click on the project and go to properties, and follow the rest of step 10.
also apparently in the problems section I have Errors(100 of 6975 items) and Warnings (100 of 778 items) is this common
when I tried to run test at firest it says I have errors then i clicked proceed…nothing happened but in the console section it says
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error, annotations are only available if source level is 5.0
at com.jme.app.SimpleGame.<init>(SimpleGame.java:103)
at jmetest.renderer.TestTeapot.<init>(TestTeapot.java:51)
at jmetest.renderer.TestTeapot.main(TestTeapot.java:59)
and with the hello world 1.4 one it says
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error, annotations are only available if source level is 5.0
at com.jme.app.SimpleGame.<init>(SimpleGame.java:103)
at jmetest.TutorialGuide.HelloWorld.<init>(HelloWorld.java:46)
at jmetest.TutorialGuide.HelloWorld.main(HelloWorld.java:48)
i've been searching but most threads in forums end without a answer thier is a red cross on the jme [cvs.dev.java.net] and the src subfolder though
_________________________________
I have installed in preferences for java; java-6-sun-1.6.0.05 in /usr/lib/jvm/java-6-sun-1.6.0.05 is that JDK should I change it to the java-6-openjdk I see the jvm folder or should I change it to the jvm folder in general to include the 2 folders I have in thier?
theirs an error running tests regardless of the folder I make it also the problems in the problems box are still thier
If you followed the eclipse tutorial properly you wont have errors, you will have warnings though. The red x means there were errors when trying to compile some of the files - probably because you don't have your libraries linked properly/fully (step 10)
I redid the tutorial, its that way from the time I check it out but then instead of not checking the system library (added to the boot class path)
now I get caution signs I went back to it and unchecked it but it remains the same so i deleted the jme required and redid it and got the same red sign with an x in it should I change the native library location for all of them??