|
From: Jeffrey D. <jp...@ho...> - 2001-11-22 08:21:44
|
After trying to compile the code at the end of this message, I get an
error:
Compiling .java to .class...
Compiling with args: ['C:\\Program
Files\\JavaSoft\\JRE\\1.3.1\\bin\\javac', '-c
lasspath',
'C:\\jdk1.3.1_01\\jython\\jython.jar;C:\\jdk1.3.1_01\\jython;.\\jpywo
rk;;C:\\jdk1.3.1_01\\jython\\Tools\\jythonc;C:\\jdk1.3.1_01\\jython\\.;C
:\\jdk1.
3.1_01\\jython\\Lib;C:\\jdk1.3.1_01\\jython',
'.\\jpywork\\HelloUniverse.java']
1 java.io.IOException: CreateProcess: "C:\Program
Files\JavaSoft\JRE\1.3.1\bin\
javac" -classpath
C:\jdk1.3.1_01\jython\jython.jar;C:\jdk1.3.1_01\jython;.\jpywo
rk;;C:\jdk1.3.1_01\jython\Tools\jythonc;C:\jdk1.3.1_01\jython\.;C:\jdk1.
3.1_01\j
ython\Lib;C:\jdk1.3.1_01\jython .\jpywork\HelloUniverse.java error=2
Consider using the -C/--compiler command line switch, or setting
the property python.jythonc.compiler in the registry.
ERROR DURING JAVA COMPILATION... EXITING
---
This program works fine (won't actually run because of applet, but
doesn't give errors).
BTW, How do I reproduce the static main?
This program is sun's jdk1.3.1_01 on win2k. This uses Java3D.
Any help would be appreciated.
Regards,
Jeffrey Drake
---
from java.applet import Applet
from java.awt.BorderLayout import *
from java.awt.event import *
from java.awt.GraphicsConfiguration import *
from com.sun.j3d.utils.applet.MainFrame import *
from com.sun.j3d.utils.geometry import ColorCube
from com.sun.j3d.utils.universe import *
from javax.media.j3d import *
from javax.vecmath import *
class HelloUniverse(Applet):
def CreateSceneGraph(self):
objRoot = BranchGroup()
objTrans = TransformGroup()
objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE)
objRoot.addChild(objTrans)
objTrans.addChild(ColorCube(0.4))
yAxis = Transform3D()
rotationAlpha = Alpha(-1, 4000)
rotator = RotationInterpolator(rotationAlpha, objTrans,
yAxis, 0.0, math.acos(-1) * 2.0)
bounds = BoundingSphere(Point3d(0, 0, 0), 100)
rotator.setSchedulingBounds(bounds)
objRoot.addChild(rotator)
objRoot.compile()
return objRoot
def __init__(self):
pass
def init(self):
global u
setLayout(BorderLayout())
config = SimpleUniverse.getPreferredConfiguration()
c = Canvas3D(config)
add("Center", c)
scene = createSceneGraph()
u = SimpleUniverse(c)
u.getViewingPlatform().setNominalViewingTransform()
u.addBranchGraph(scene)
def __del__(self):
global u
u.removeAllLocales()
|