Sample project from the NetBeans tutorials set contains only one Swing form (empty JFrame), compiles and runs fine, but I can’t change layout of the form and add elements in it with the NetBeans GUI buider since it shows only empty placeholder with single “loading…” message. Any clues how to fix it would be highly appreciated. Kubuntu 12.04, Openjdk 1.7,
Tag: java
Switch maven version – mvn command does not get bound
I’m trying to switch maven from 2 to 3 (on Linux) using: Anyway mvn -v still gives version 2, so I always have to execute /path/to/maven3/bin/mvn to use maven. How can I rebind the mvn command to the appropriate maven path? Answer which mvn And then recreate symbolic link to point on new Maven version. And verify than environment variable
How using a Java GUI in a GL Linux Server command line?
My school projects are all done on the Linux Server, which is all done with command lines and no GUI. One of my java projects requires me to create a java GUI and to be able to build and run the project on the GL server. I’m confused since the GL server is all command line, but my professor says
Runtime.exec not working
I’m trying to run the following code to swap filenames. I’m using Runtime.exec. The code throws IOException. Anyway to fix this? And the error: 02-28 07:48:02.936: W/System.err(14399): java.io.IOException: Error running exec(). Command: [file1=/mnt/sdcard/fsimages_3, &&, file2=/mnt/sdcard/fsimages, &&, temp=”$(/system/xbin/mktemp, -dp, /mnt/sdcard)”, &&, /system/xbin/mv, “$file1”, $temp, &&, /system/xbin/mv, “$file2”, “$file1″, &&, /system/xbin/mv, $temp/”$file1”, “$file2”] Working Directory: null Environment: null It looks like Runtime.exec
Tomcat is running but 8080 port is not responding
I have installed sun jdk 1.6 x64 and tomcat in a linux x64 machine through ssh, I don’t have root privileges so I installed both in my home dir. I managed to successful run tomcat but if I try to enter mydomain.com:8080 there’s no answer from the server. With this command: I checked the port and it is LISTENING Any
Crash when calling autoSizeColumn on worksheet, when run under Linux (Servicemix)
I’ve written module that generates excel, and deployed it under Servicemix. In Windows environment everything is fine, but under Linux Servicemix unexpectedly crashes on following call: I’m using POI version 4.2-FINAL, FuseESB 4.2, Java 5.0. There are, however, no hs_err*.pid files. Servicemix logs ends on first autoSizeColumn call. Did anyone met such behaviour and know, how it is caused and
Correct way to build “live” directory structure after maven build?
I have a multi module maven project which looks something like: main component_one subcomponent_bob subcomponent_mike subcomponent_joe component_one_aggregate component_two subcomponent_tim subcomponent_lary component_two_aggregate The aggregate projects create parent jars for each of the components containing all of their subcomponents. I have a pom in each directory, and it all deploys to a local repository. Everything works great! Except that I would like
How can I make this JButton visible? When I have progressive scan background JWindow()?
How can I make the JButton visible? 1) When no progressive background is turned on: JButton is showing 2) When no progressive background is turned on, JButton is pressed still showing no flicker: 3) When progressive background is turned on, JButton is invisible and on pressing in this I see flicker and JButton() appears and again hides auto. << Problem
eclipse/tomcat: deploy doesn’t work any more (ClassNotFoundException)
I’m running Eclipse Helios Service Release 1, with Tomcat 7.0.12 in Linux Ubuntu Natty Narwhal. I’ve been happily hot re-deploying my webapp until it stopped working for apparently no reason. The following exception is displayed: In Servers tab I’ve “Tomcat v7.0 Server at localhost [Started,Synchronized] My project appears as a child of Tomcat v7.0 Server In Properties, Java Build Path,
Ant unable to find javac, JAVA_HOME won’t set on Ubuntu
I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless). It contains all things an Android project folder should have. I first build the project in bash while in the Project folder using this synax: then I try to build the .apk with ant like so: I get this error: which is very confusing to me