Breaking News
Home / Java

Java

How to run the JVM in 64bit?

The JDK  comes in both 32 bit and 64 bit flavors. 64 bit allows to address memory range > 3GB compared to 32 bit JVM’s. In order to run a JVM in 64 bit, add -d64 argument to the java command line in your shell script e.g. java_cmd_line=”java -d64 –Xms512m …

Read More »

Caused by: java.lang.IllegalArgumentException: invalid target release: 1.7 – Dropwizard

Usecase Building DropWizard using Maven via command line. <groupId>com.codahale.dropwizard</groupId>     <artifactId>dropwizard-parent</artifactId>     <version>0.7.0-SNAPSHOT</version>     <packaging>pom</packaging>     <name>Dropwizard Project</name>     <url>http://dropwizard.codahale.com/</url>     <description>         Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web         applications.     </description> Command Used: mvn package Exception Caused by: java.lang.IllegalArgumentException: invalid target release: 1.7 [INFO] Compiling 5 source files to /Users/mvohra/Downloads/dropwizard-master/dropwizard-util/target/classes [INFO] ———————————————————————— …

Read More »

How to show Alert Dialog in Java Swing?

Displaying a simple message box or an alert dialog with an Ok button can be done with just one line of code as show below: A) Without a JFrame JOptionPane.showMessageDialog(null, “Message goes here”); This will display the dialog box in the center of your screen. B) If you have a …

Read More »
Advertisment ad adsense adlogger