当前位置: 技术问答>java相关
初学者问题--在线等待,sos
来源: 互联网 发布时间:2015-11-12
本文导语: 出现了这个错误,我应该怎么办: F:JBuilder7jdk1.3.1demojava3d_code11>javac jump.java Note: jump.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. F:JBuilder7jdk1.3.1demojava3d_code11>javac -deprecation jump.java jump....
出现了这个错误,我应该怎么办:
F:JBuilder7jdk1.3.1demojava3d_code11>javac jump.java
Note: jump.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
F:JBuilder7jdk1.3.1demojava3d_code11>javac -deprecation jump.java
jump.java:245: warning: com.sun.j3d.utils.behaviors.picking.PickMouseBehavior in
com.sun.j3d.utils.behaviors.picking has been deprecated
class pick extends PickMouseBehavior {
^
jump.java:255: warning: com.sun.j3d.utils.behaviors.picking.PickObject in com.su
n.j3d.utils.behaviors.picking has been deprecated
ypos,PickObject.USE_BOUNDS), PickObject.PRIMITIVE);
^
jump.java:255: warning: com.sun.j3d.utils.behaviors.picking.PickObject in com.su
n.j3d.utils.behaviors.picking has been deprecated
ypos,PickObject.USE_BOUNDS), PickObject.PRIMITIVE);
^
3 warnings
F:JBuilder7jdk1.3.1demojava3d_code11>java jump
************************************************************************
*** ERROR: Canvas3D constructed with a null GraphicsConfiguration
*** This will cause a NullPointerException in a subsequent release
************************************************************************
Exception: com.sun.j3d.loaders.vrml97.impl.ParseException: To or From node on RO
UTE not DEF'd
Last token was "set_fraction" at line 51
com.sun.j3d.loaders.vrml97.impl.ParseException: To or From node on ROUTE not DEF'd
at com.sun.j3d.loaders.vrml97.impl.Parser.RouteStatement(Parser.java:497)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBodyElement(Parser.java:599)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBody(Parser.java:586)
at com.sun.j3d.loaders.vrml97.impl.Parser.Node(Parser.java:510)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeStatement(Parser.java:229)
at com.sun.j3d.loaders.vrml97.impl.Parser._MultNode(Parser.java:1204)
at com.sun.j3d.loaders.vrml97.impl.Parser._MFNode(Parser.java:1692)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldValue(Parser.java:699)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldInit(Parser.java:632)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldStatement(Parser.java:623)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBodyElement(Parser.java:596)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBody(Parser.java:586)
at com.sun.j3d.loaders.vrml97.impl.Parser.Node(Parser.java:510)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeStatement(Parser.java:220)
at com.sun.j3d.loaders.vrml97.impl.Parser.Statement(Parser.java:198)
at com.sun.j3d.loaders.vrml97.impl.Parser.Scene(Parser.java:187)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:407)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:355)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:293)
at com.sun.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:112)
at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:99)
at jump$vrmlLoad.(jump.java:235)
at jump.createSceneGraph(jump.java:172)
at jump.(jump.java:219)
at jump.main(jump.java:226)
Exception loading URL: vrml.InvalidVRMLSyntaxException
vrml.InvalidVRMLSyntaxException
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:413)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:355)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:293)
at com.sun.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:112)
at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:99)
at jump$vrmlLoad.(jump.java:235)
at jump.createSceneGraph(jump.java:172)
at jump.(jump.java:219)
at jump.main(jump.java:226)
com.sun.j3d.loaders.ParsingErrorException
F:JBuilder7jdk1.3.1demojava3d_code11>javac jump.java
Note: jump.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
F:JBuilder7jdk1.3.1demojava3d_code11>javac -deprecation jump.java
jump.java:245: warning: com.sun.j3d.utils.behaviors.picking.PickMouseBehavior in
com.sun.j3d.utils.behaviors.picking has been deprecated
class pick extends PickMouseBehavior {
^
jump.java:255: warning: com.sun.j3d.utils.behaviors.picking.PickObject in com.su
n.j3d.utils.behaviors.picking has been deprecated
ypos,PickObject.USE_BOUNDS), PickObject.PRIMITIVE);
^
jump.java:255: warning: com.sun.j3d.utils.behaviors.picking.PickObject in com.su
n.j3d.utils.behaviors.picking has been deprecated
ypos,PickObject.USE_BOUNDS), PickObject.PRIMITIVE);
^
3 warnings
F:JBuilder7jdk1.3.1demojava3d_code11>java jump
************************************************************************
*** ERROR: Canvas3D constructed with a null GraphicsConfiguration
*** This will cause a NullPointerException in a subsequent release
************************************************************************
Exception: com.sun.j3d.loaders.vrml97.impl.ParseException: To or From node on RO
UTE not DEF'd
Last token was "set_fraction" at line 51
com.sun.j3d.loaders.vrml97.impl.ParseException: To or From node on ROUTE not DEF'd
at com.sun.j3d.loaders.vrml97.impl.Parser.RouteStatement(Parser.java:497)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBodyElement(Parser.java:599)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBody(Parser.java:586)
at com.sun.j3d.loaders.vrml97.impl.Parser.Node(Parser.java:510)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeStatement(Parser.java:229)
at com.sun.j3d.loaders.vrml97.impl.Parser._MultNode(Parser.java:1204)
at com.sun.j3d.loaders.vrml97.impl.Parser._MFNode(Parser.java:1692)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldValue(Parser.java:699)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldInit(Parser.java:632)
at com.sun.j3d.loaders.vrml97.impl.Parser.FieldStatement(Parser.java:623)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBodyElement(Parser.java:596)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeBody(Parser.java:586)
at com.sun.j3d.loaders.vrml97.impl.Parser.Node(Parser.java:510)
at com.sun.j3d.loaders.vrml97.impl.Parser.NodeStatement(Parser.java:220)
at com.sun.j3d.loaders.vrml97.impl.Parser.Statement(Parser.java:198)
at com.sun.j3d.loaders.vrml97.impl.Parser.Scene(Parser.java:187)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:407)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:355)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:293)
at com.sun.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:112)
at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:99)
at jump$vrmlLoad.(jump.java:235)
at jump.createSceneGraph(jump.java:172)
at jump.(jump.java:219)
at jump.main(jump.java:226)
Exception loading URL: vrml.InvalidVRMLSyntaxException
vrml.InvalidVRMLSyntaxException
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:413)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:355)
at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:293)
at com.sun.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:112)
at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:99)
at jump$vrmlLoad.(jump.java:235)
at jump.createSceneGraph(jump.java:172)
at jump.(jump.java:219)
at jump.main(jump.java:226)
com.sun.j3d.loaders.ParsingErrorException
|
过时的类并不影响使用,只是sun不推荐用了而已,如果是别人的程序,又能运行,没有改的必要了。