简体   繁体   English

确保存在JavaX包

[英]Ensuring that JavaX Package is Present

My copy of Java 8 on OS X has the javax package. 我在OS X上的Java 8副本具有javax软件包。

My copy of Java 8 on Debian/Ubuntu (Linux Mint) does not. 我在Debian / Ubuntu(Linux Mint)上的Java 8副本没有。

Exception in thread "main" java.lang.NoClassDefFoundError: javax/vecmath/Point3f 线程“主”中的异常java.lang.NoClassDefFoundError:javax / vecmath / Point3f

How could I get hold of a portable version ( JAR ) that contains this package and include it if it doesn't exist at run time? 如果运行时不存在包含此软件包的可移植版本( JAR ),并包含它,我该如何把握呢?

Is there a better solution? 有更好的解决方案吗?

The problem isn't that javax is missing; 问题不在于缺少javax on your Debian installation you should have most of its libraries such as Swing and javax.crypto . 在Debian安装上,您应该拥有其大多数库,例如Swing和javax.crypto What you are missing is Java 3D, a library that does not come with every java installation. 您缺少的是Java 3D,它不是每个Java安装都附带的库。 You should be able download the Java 3D API here , and then you will have Point3f and the other classes in javax.vecmath . 您应该可以在这里下载Java 3D API,然后在javax.vecmath拥有Point3f和其他类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM