troubleshooting Question

How to run Java/Eclipse jar without sudo on Ubuntu

Avatar of ostraaten
ostraaten asked on
JavaEditors IDEsLinux Distributions
3 Comments1 Solution2182 ViewsLast Modified:
I'm trying to run a Eclipse jar on Ubuntu. This jar is a command line utility part of Eclipse Process Framework that allows to publish from the command line rather than the IDE, for integrating in a build process/automating.

The command is
java -jar /home/ostraaten/Apps/epfc_1.5.0.1/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar -data /ostraaten/EPF/workspace.150 -nosplash -application org.eclipse.epf.publishing.cmdline.Publish -libraryPath /home/ostraaten/Apps/epfc_1.5.0.1/epf_practices/ -publishPath /home/ostraaten/EPF/Publish/openup -config publish.openup -os linux -arch x86 -ws gtk

The above command does very little when I run like that. It does not execute or try to execute the publish procedure. There is no error. The command returns very quickly. When I add -verbose I see that it loads a bunch of stuff but does not execute anything.

When I add sudo to the command the command line works as expected. But of course I don't want to use sudo: all generated content will be owned by root and this also defeats the purpose of having the command line, If it prompts for a password, there is no use in making it part of the build process. Note: I can run the publish from the IDE (without the command line), no problems.

The issue is not Eclipse or Ubuntu related I think. This is an issue with Java that Sun created. At least that is my hunch. I know of one person who managed to get it working without sudo on Ubuntu, I think same version as me. So it is possible.

I searched using Google but found very little info on this issue. Now I would really appreciate some pointers on how to fix this and tackle this problem.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros