Forums Register Login

Getting an error when running some Java code

+Pie Number of slices to send: Send
I'm trying to make a Java project that loads and displays an X3D file, the code that I have in the java class is:



I've downloaded all the Jars that I need and have made a library and linked that library to my project and I've put the 'test.x3dv' file in the project folder. The error that I'm getting when I run the code is:

+Pie Number of slices to send: Send
"TRUE" is a String. A boolean is true or false. Notice how they don't have quotes.

Making that line:
+Pie Number of slices to send: Send
I've changed it so that all the ones that have "TRUE" at the end are boolean and I have the following output when I run it.
+Pie Number of slices to send: Send
Progress! Can you show the command you are using to run it? IN particular, that you have a -cp flag and are including the jar that contains org.j3d.aviatrix3d.DrawableSurface.
+Pie Number of slices to send: Send
I'm using Netbeans to write the code it so when I want to run it, I press the 'Run Project' button at the top. I found that jar here. I'm including all the jars that are stated here
+Pie Number of slices to send: Send
You might want to try refreshing the NetBeans project. Or post a screenshot showing the jar in the NetBeans project path. Beyond that, I don't know. I've added this to the IDEs forum so someone who knows NetBeans better can weigh in.
+Pie Number of slices to send: Send
I've just refreshed the project and when I've run it, I've got:


The library that I've put the jars in can be found with the following link
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
All: The link works if you click on it: image
+Pie Number of slices to send: Send
Sorry, I didn't know how to make the image links work
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 810 times.
Similar Threads
java.lang.IllegalAccessError when running code
Getting a running error while running some code to import X3D into Java
Exception in thread “main” java.lang.NoClassDefFoundError: javax/media/j3d/Canvas3D Runtime error
Java runtime error
Java runtime error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:53:49.