Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

How to access Java3D classes (in JBuilder environment)

I've installed the Java3D package
(installation file: java3d-1_2_1_03-win32-opengl-sdk.exe), but when I compile an example program using the package, I get errors telling me that classes under the following packages cannot be accessed:

import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;

The packages are all part of Java3D.

My JBuilder 4 says it uses the following JDK: "java 1.3.0-C". My OS is Win98 SE.

I'd appreciate clear instructions on how to get JBuilder to find the Java3D packages and files. :)
0
raives
Asked:
raives
  • 3
1 Solution
 
Oliver_DornaufCommented:
You need to append the jar files to your classpath.
0
 
raivesAuthor Commented:
As my operating system is Windows 98, I don't have a CLASSPATH variable.

Can it be specified somewhere in Win 98?!
0
 
raivesAuthor Commented:
The solution was the following:

1) Extract all the Java 3D files into JAVA.HOME/lib/ext.

2) Include the extracted files as a required library in JBuilder ("Project Properties" -- "Required Libraries" -- "Add...").

Simple after all.
0
 
trisoCommented:
Hi raives.

An easier way is to use "Tools | Configure Libraries | New" to get the New Libraries Wizard.  You do not have to extract files from the jar files and it will be able to use documentation and source code as well.

0
 
raivesAuthor Commented:
Thanks.

Note, however, the jar files don't need to be extracted in my solution either.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now