jdk

Finding out which compiler Maven uses

Hi. Do you know how I can find out which of my JDKs Maven uses to compile my projects? ...

Do different JDK Updates produce different Java byte code?

A hypothetical scenario: I've got a project whose source compliance level is specified to 1.5. Now I compile this project with two different JDKs: At first with JDK 6 Update 7 and then with JDK 6 Update 20. Do these two different JDKs produce different Java byte code, although they only differ in their Update version? ...

Eclipse with JDK in Ubuntu 10.04

A short question: My eclipse project is set to use the "sun-java-6-jdk"-supplied JDK library, but I cannot Ctrl-click to view source (no source attached), as I can do out-of-the-box on Windows. How do I make this work? ...

JDK Installed but browser (FF, IE) can't run Java apps

I have installed latest JDK (x64) on Windows 7 but browsers still can't run the java apps. I understand that JDK includes JRE. JDK is installed correctly and from command line (Java -version) shows installed version as well. Any suggestion please? Thank you ...

"Android Create" call fails in windows 7 - missing JDK

I'm having a problem getting my android dev environment setup in Windows 7. I follow the instructions here, as well as several environment sublinks. I am using Eclipse with the Android plugin. I have installed the Java JDK several times, in various locations (jdk-6u20-windows-i586.exe) - but I am obviously missing something. Every ...

migrate from jdk 14 to jdk 16

soon we are moving from jdk14 and start using jdk16.Ours is desktop application. What measures I need to take to make sure it works correctly on clients machine? Right now some of them using JRE4 and some JRE6.Server- Solaris. PD ...

Java - how to design your own type?

Is it possible to design your own Java Type, similar to an extensible enum? For instance, I have user roles that a certain module uses and then a sub-package provides additional roles. What would be involved on the JDK side of things? ...

JDK tools.jar as maven dependency

I would like to put JDK tools.jar as compile dependency. I found some examples that indicates to use the systemPath property like the following: <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> The problem is that t...

Building same project in Maven with different artifactid (based on JDK used)

Hi, I have a scenario wherein my project needs to be compiled in different JDKs and the resulting artifact name should be different based on the JDK used. For example if the project name is MyProject and I call mvn install then it needs to be compiled in JDK 1.4 as well as JDK 1.5, and finally I get two jars of the same project (MyProje...

Java GAE maven configuration problem? just another VerifyError

My project works absolutely fine on the Google Server but I get a VerifyError: java.lang.VerifyError: (class: org/restlet/ext/servlet/ServerServlet, method: createServer signature: (Ljavax/servlet/http/HttpServletRequest;) Lorg/restlet/engine/http/HttpServerHelper;) Incompatible object argument for function call UPDATE Through ex...

Help me to signe my application apk file

Hi All This will be my first time signing application using Keytool and Jarsigner. I run my apk through the market signing process, step by step as it is explained in android official site http://developer.android.com/intl/fr/guide/publishing/app-signing.html Signed process finished with success apk created. Installation of this ...

Java - Dynamic Compilation without JDK

im aware that j2se 6 has introduced the JavaCompiler API; however, it's cumbersome to use and require a JDK not JRE. Is it possible to do dynamic compilation without a JDK? (im very interested in all-in-memory compilation.) additionally, i expect the performance to be close to raw java code, so i don't want to use a scripting language ...

Will Closures be supported in the final JDK 7 or not?

Possible Duplicate: Closures in Java 7 There are so many articles and web pages about Closures in JDK 7. As i remember, first they said that Closures will be in JDK7, then they said that they won't be - but that was in the beginning of 2009. Then in the end of 2009 they said that they will be in JDK7 again. Now as i'm research...

Portable JDK, Tomcat, and Eclipse (Windows)

Does anybody know how to make a usb thumb drive with a JDK, Tomcat, and Eclipse (J2EE) (all for a Windows platform, preferably)? I saw this question, but the only answer was speculative. I know that the eclipse part would be easy -- just put it on the thumb drive. Tomcat requires a JDK as far as I know. Would there be a way to setup to...

jersey restful webservice tomcat version

Hi, I want to write a simple restful webservice. As it would be as simple as accessing data from / to the database, I am planning to use tomcat & not any heavy application server. I have existing tomcat 5.5 setup. Which Jersey version would be compatible with tomcat 5.5 & java 1.5? ...

code does not run in JRE 1.6

I have some code compiled in jdk1.6.0_16 but when I try to run it on a different machine it says application requires JRE 1.5.0_08 - 1.5.0_11 What can be the issue?? ...

How to add Red Hat Supplementary Channel?

Hi: Instruction to install Sun JDK in Red Hat Linux: https://wiki.jasig.org/display/CASUM/HOWTO+Switch+to+Sun+JVM+in+RHEL The above instructions asks to 'Subscribe your system to the 'supplementary' channel in Red Hat Network' - how can this be added via the command line? Thanks. ...

Where is Java EE 6 SDK for Windows 7 x64?

Sun's website is confusing. I am looking for Java 1.6 Enterprise Edition SDK for WINDOWS 7 64-bit. I found the 64-bit Standard Edition, and the 32-bit Enterprise edition. Can anyone help? Thanks ...

Java date handling: store date, time and timezone in a single class

Does there exist a Java class, either in the standard libraries or third party, that allows one to store the date, time in millisecond accuracy and the timezone of the time within the same object? The features I need: Store a date, time with at least millisecond accuracy and the timezone Parse string date representations (e.g. "20...

Does Java 6 include a program that can run javax.script (Rhino JS) files?

I found that Java 6 includes Rhino JS (except for one or two minor pieces), as javax.script. Pretty cool! Does a Java 6 install (JRE or JDK, either) contain a binary that I can simply point to a .js file to run? (I think it would be great to be able to provide source code for others to read and run, without compilation, and require on...