VRML

HELP!! I've tried many things to get my programs to import vrml files. I have followed all the install instructions at least 6 times AND tried some of my own ideas. The example file doesn't work and I keep getting the error: package com.md3d.j3d.utils does not exist. I have put that package in almost every folder and even tried putting it in the class path. vrml97loader.jar has always been in the class path.

[427 byte] By [dogbear8me] at [2007-9-27 14:22:12]
# 1

for me i've put the vrml97.jar

path_to_my_JVM/jre/lib/ext/

and it work if you import it correctly

and use it like this

import com.sun.j3d.loaders.vrml97.*;

...

...

...

Loader loader = new VrmlLoader();

Scene scene = null;

BranchGroup group = null;

try {

// first try as URL

URL url = new URL(name);

try {

scene = loader.load(url);

} catch (Exception ex) {}

....

...

czorman at 2007-7-5 22:12:27 > top of Java-index,Security,Cryptography...