java-7

Is there a way to install Java 7 onto a USB and use that for projects in eclipse? [closed]

≡放荡痞女 提交于 2019-12-13 11:29:18
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a computer and a Laptop. Because I code on both I put my eclipse workspace on a USB. But my computer has Java 7 and 6, but my laptop only has Java 6. I want to use Java 7 on my laptop too. Is there a way

TLSv1.2 with Java 7 and Wildlfy 8 - handshake_failure

我的未来我决定 提交于 2019-12-13 08:46:12
问题 In our application we need send some data to foreign customer server web service JAX-WS. I generated required client files from WSDL with using wsimport . Then I tried connect to server side web service. But with Java 1.7.0_67 64bit connection wasn't successfull. When I change JAVA_HOME, Eclipse Java configuration and Wildfly 8 Runtime environment to Java 8, it was successfull. By https://www.ssllabs.com server support only TLSv1.2. Therefore I mean that Java 8 hasn't problem connect on this,

Java crashes when calling dll function using JNA

谁说我不能喝 提交于 2019-12-13 08:24:44
问题 I'm using JNA to run a dll function: Here is all the code corresponding to that manner: The Native Declarations: //how the method declared H264_Login (char *sIP, unsigned short wPort, char *sUserName, char *sPassword, LP_DEVICEINFO lpDeviceInfo, int *error, ,SocketStyle socketTyle=TCPSOCKET); // where LP_DEVICEINFO is a struct //how the struct declared typedef struct _H264_DVR_DEVICEINFO { SDK_SYSTEM_TIME tmBuildTime; // the "SDK_SYSTEM_TIME" is another struct char sSerialNumber[64]; int

SocketTimeoutException while opening New Spring Starter Project wizard on STS running with Java 7

*爱你&永不变心* 提交于 2019-12-13 07:26:58
问题 I'm using the ZIP distribution of STS 3.5.1 for win32. I start STS with this cmd script: set JAVA_HOME=d:\jdk\jdk1.7.0_21 set PATH=%JAVA_HOME%\bin;%PATH%; start .\sts-3.5.1.RELEASE\sts.exe Then, when I do "New > Spring Starter Project", I get this error: If I replace Java 7 with Java 6 by changing the first line of my cmd script, everything works fine: the wizard starts. set JAVA_HOME=d:\jdk\jdk1.6.0_31 Is there something special to do if I want to use Java 7 ? 回答1: You probably want to get a

Sqoop and Java 7

*爱你&永不变心* 提交于 2019-12-13 06:22:15
问题 I'm trying to use sqoop to import a MySQL table into HDFS. I'm using JDK 1.7.0_45 and CDH4.4. I'm actually using cloudera's pre-built VM, except I changed the JDK to 1.7 because I wanted to use the pydev plugin for eclipse. My sqoop version is 1.4.3-cdh4.4.0. When I run sqoop I get this exception: Error: commodity : Unsupported major.minor version 51.0 I have seen this error in the past when I did this: 1. compiled to java 7 2. ran an application with java 6. but that is not what I am doing

Error when using LogManager (l4j2) with Java 8 (java.lang.reflect.AnnotatedElement cannot be resolved)

纵饮孤独 提交于 2019-12-13 04:55:42
问题 I just encountered a strange error when switching the JDK version of a new Project of mine from 7u45 to 8u20. A harmless LogManager declaration at the beginning of my class is being refused with the following error: The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files This is the code: public class Class1 { private static Logger log = LogManager.getLogger(Class1.class); ... Eclipse proposes me to configure the build path, but I

On starting eclipse, it gives an error “Java was started but returned exit code=13”

懵懂的女人 提交于 2019-12-13 04:47:09
问题 I am trying to start eclipse after installing java 7 and adding the line -vm C:\Progra~2\Java\jdk1.7.0_45\bin\javaw.exe to the eclipse.ini file. Still i am getting the error "Java was started but returned exit code=13". I just want to know how to start eclipse. Even if i have to install eclipse, java, jre all over again. Any suggestion will do! My eclipse.ini file: -startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32

Launching SWT on Mac using Java Web Start

核能气质少年 提交于 2019-12-13 04:23:39
问题 Goal: Launch SWT Web Start application on Mac using Java 7 In order to run an SWT RCP application on Mac OS X, it is well documented that it is necessary to include -XstartOnFirstThread as part of the Java Virtual Machine arguments. Unfortunately, Java Web Start seems to be deleting this argument. Looking at Java Web Start’s detailed tracing logs: temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase=“..." href=“..."> <information> ... <resources> <java java-vm-args="

java.lang.VerifyError when deploying the new version of my Java EE web application

╄→гoц情女王★ 提交于 2019-12-13 03:58:43
问题 I modified some code in my current web project to add Spring transaction management. Everything works just fine when I deploy it in Eclipse or even when I call a "Maven clean" and a "Maven install" in my workspace. However when my continuous integration server (jenkins) tries to redeploy it on my distant server I get a java.lang.VerifyError and it fails: maven-glassfish-plugin:2.1:deploy (default-cli) @ myApp --- [INFO] asadmin --host localhost --port 4848 --user admin --passwordfile C:

Error occurred during initialization of VM macosx

徘徊边缘 提交于 2019-12-13 00:55:48
问题 I see a few question with this title already. I have checked it, if it has a solution for me, but not. I had a java 1.6 installed the 1.7 in .bash_profile I hade an export with JAVA_HOME poiting to 1.6. I have removed and I have removed all Java / sdk related stuff, and I think I have removed from osx something too, what I shouldn't :) I have installed the 64 bit version of the 1.7.0_13, now it isn't at the bin folder in the PATH, so if I navigate there and doubleclick on Java it will have