Adding plugin.jar to the build path in eclipse in a machine indepenent way

I'm working on a project that uses JSObject from the jre's plugin.jar, which isn't included in the build path normally. I can get things to compile fine by adding the jar to the classpath. Currently I'm doing this in eclipse via Project->Configure Build Path->Libraries->Add External JARs... -> find the jar in jdk/jre/lib/plugin.jar. This results in a machine specifi

以独立于机器的方式将plugin.jar添加到eclipse中的构建路径中

我正在使用jre的plugin.jar中使用JSObject的项目,该项目通常不包含在构建路径中。 通过将jar添加到类路径中,我可以将事情编译好。 目前我在eclipse中通过Project-> Configure Build Path-> Libraries - > Add External JARs - >在jdk / jre / lib / plugin.jar中找到jar。 这导致我的.classpath文件中的特定于计算机的路径(如C:/ Program Files / Java / jdk1.6.0_16 / jre / lib / plugin.jar)。 检查到

How do I specify an old JDK compliance in an Eclipse project?

I have a project that I need to be compatible with only up to JDK 1.4. However, I don't have a JDK 1.4 installed on my system (Mac). I get the following warning in Eclipse: Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment. I have a JDK 8 installed that is compatible but Eclipse is not re

如何在Eclipse项目中指定旧的JDK合规性?

我有一个项目,我只需要与JDK 1.4兼容。 但是,我的系统(Mac)上没有安装JDK 1.4。 在Eclipse中我得到以下警告: 构建路径指定执行环境J2SE-1.4。 工作区中没有安装与此环境严格兼容的JRE。 我安装了兼容的JDK 8,但Eclipse无法识别它。 我不想要1.4以上的任何东西进入这个项目。 我如何去配置这个? 该项目可能配置为使用JDK 1.4。 既然你没有安装那个,你需要删除它并添加你实际拥有的1.8。 右键单击项目并选

Build path specifies execution environment J2SE

I create a Maven project in Eclipse Helios. It works fine for a day, but then this warning shows up: Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment. Since this message, the project stopped compiling and debugging. Does anyone have solution for this problem? In Eclipse from your project:

构建路径指定执行环境J2SE

我在Eclipse Helios中创建了一个Maven项目。 它工作得很好,但是这个警告显示出来了: 构建路径指定执行环境J2SE-1.4。 工作区中没有安装与此环境严格兼容的JRE。 由于此消息,项目停止编译和调试。 有没有人有解决这个问题? 在你的项目中的Eclipse中: 用鼠标右键单击您的项目 点击属性 Java构建路径:库; 删除“JRE系统库[J2SE 1.4]” 单击添加库 - > JRE系统库 选择新的“执行环境”或工作区默认JRE 无

Find Oracle JDBC driver in Maven repository

I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.3.0</version> </dependency> of course this does't work as it is not in the central reposi

在Maven存储库中查找Oracle JDBC驱动程序

我想将oracle jdbc驱动程序添加到我的项目中作为依赖项(运行时作用域) - ojdbc14。 在MVNrepository站点中,放入POM的依赖是: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.3.0</version> </dependency> 当然这不起作用,因为它不在maven使用的中央存储库中。 2个问题: 如何找到包含此工件的存储库(

How to set the java.library.path from Eclipse

How can I set the java.library.path for a whole Eclipse Project? I'm using a Java library that relies on OS specific files and need to find a .dll/.so/.jnilib. But the Application always exits with an error message that those files are not found on the library path. I would like to configure this whole project to use the library path. I tried to add the path as a VM argument to some run

如何从Eclipse中设置java.library.path

我如何设置整个Eclipse项目的java.library.path? 我正在使用依赖于操作系统特定文件并需要查找.dll / .so / .jnilib的Java库。 但是应用程序总是退出,并显示错误消息,指出这些文件在库路径中找不到。 我想配置整个项目来使用库路径。 我试图添加路径作为虚拟机参数在Eclipse中的一些运行配置,但没有奏效。 不要乱用图书馆的路径! Eclipse自己构建它! 相反,请进入项目的库设置,对于需要本机库的每个jar / etc,

SunPKCS11 provider in Java 9

Up to Java 8 the SunPKCS11 provider was loaded like this: Provider provider = new sun.security.pkcs11.SunPKCS11 (new ByteArrayInputStream (configFile.getBytes ())); Security.addProvider (provider); configFile is a String with the configuration parameters. So, if the application needed to work with several connected smart cards it could create multiple providers. To access each provider the na

Java 9中的SunPKCS11提供程序

在Java 8之前,SunPKCS11提供程序是这样加载的: Provider provider = new sun.security.pkcs11.SunPKCS11 (new ByteArrayInputStream (configFile.getBytes ())); Security.addProvider (provider); configFile是一个带有配置参数的字符串。 因此,如果应用程序需要与多个连接的智能卡一起工作,它可以创建多个提供程序。 要访问每个提供商,使用的名称是“SunPKCS11-”,后面跟着我们在配置中指明的名称。 在Java 8中,JDK

Java encrypting with USB certificates (smart cards)

I'm writing a Java program which is encrypting and signing with USB certificates (smart cards). I have a shared library (.dll on Windows, .so on Linux) which implements PKCS11 for the hardware. I was searching for existing solutions and found the following guide http://docs.oracle.com/javase/7/docs/technotes/guides/security/p11guide.html The guide suggests to use sun.security.pkcs11.SunPKC

用USB证书加密Java(智能卡)

我正在编写一个正在使用USB证书(智能卡)进行加密和签名的Java程序。 我有一个共享库(在Windows上是.dll,在Linux上是.so),它为硬件实现了PKCS11。 我正在寻找现有的解决方案,并找到了以下指南http://docs.oracle.com/javase/7/docs/technotes/guides/security/p11guide.html本指南建议使用sun.security.pkcs11.SunPKCS11提供程序。 但是,我对sun.security.pkcs11软件包存在严重问题。 我设法做了签名工作,但我无法

Java SunPKCS11 access USB crypto

I have a working implementation of ACS CryptoMate64 token with Java SunPKCS11 on Windows through the provided acos-pkcs11.dll library (Java 32bit in order to have SunPKCS11 available on Windows). ACS CryptoMate64 is a USB token which is accessed by SunPKCS11 locally on Windows computer. There is no PKCS11 libraries for Linux (no .so files or anything similar). Because I am using a Linux mach

Java SunPKCS11访问USB加密

我通过提供的acos-pkcs11.dll库(Java 32位为了在Windows上提供SunPKCS11)在Windows上使用Java CryptoMate64令牌和Windows上的Java SunPKCS11进行工作实现。 ACS CryptoMate64是一个USB令牌,可由Windows计算机上的SunPKCS11本地访问。 没有用于Linux的PKCS11库(没有.so文件或类似的东西)。 因为我正在使用Linux机器来获得某些功能,所以我想问一下如何通过USB连接到不同计算机上的网络来访问PCKS11设备。 这个想法如

Compiling a Servlet in Ubuntu returns errors

I am attempting to compile source code to be used in a webapp. I know things in Ubuntu are not like things in Windows and that setting classpath permanently is not a good thing to do so I decided to set the flag temporarily. Here is my command in terminal: littlejavachild@ubuntu:~/LittleJavaChild/ServletProjects/beerV1$ javac -cp "/usr/share/tomcat7/servlet-api.jar" -d classes src/c

在Ubuntu中编译Servlet会返回错误

我正在尝试编译要在webapp中使用的源代码。 我知道Ubuntu中的东西不像Windows中的东西,永久设置classpath不是一件好事,所以我决定暂时设置标志。 这是我在终端的命令: littlejavachild@ubuntu:~/LittleJavaChild/ServletProjects/beerV1$ javac -cp "/usr/share/tomcat7/servlet-api.jar" -d classes src/com/example/*.java 我试图达到的是: 编译包com.example中的所有.java文件 将.class文件直接发送

How was Object class generated?

I am just curious to know how the classes (inside rt.jar provided by Oracle) like java.lang.Object, java.lang.String were generated from the .java source files. I think, it's not possible for their javac to compile them. I tried to compile Dummy.java containing "class Dummy{}" lab@labb:~/Documents$ set PATH=.:$JAVA_HOME/bin lab@labb:~/Documents$ set CLASSPATH=. lab@labb:~/D

Object类是如何生成的?

我只是想知道如何从.java源文件中生成像java.lang.Object,java.lang.String这样的类(在Oracle提供的rt.jar中)。 我认为,他们的javac不可能编译它们。 我试图编译Dummy.java,其中包含“class Dummy {}” lab @ labb:〜/ Documents $ set PATH =。:$ JAVA_HOME / bin lab @ labb:〜/ Documents $ set CLASSPATH =。 lab @ labb:〜/ Documents $ javac -verbose Dummy.java [解析开始RegularFileObject [Dummy.ja