Cannot Find Javax.Comm.Properties in Ubuntu 13.04 - java

I have developed an application which results serial ports in combobox, but when I am running .jar file of my application using command terminal using command:
Java -jar Serial_Send.jar //where Serial_Send is name of my jar file
It is resulting into an error Cannot find javax.comm.properties.
But javax.comm.properties file is present in java_home/jre/lib directory.
What else I have to do in order to resolve this.

Try the following command:
java -jar -Djava.class.path=java_home/jre/lib Serial_Send.jar
This will put the lib directory in class path of program explicitly.

Related

I want to run the libGDX-setup jar file how to do it

Whenever I type the following Command :
-jar libGDX-setup.jar in Command Prompt .It Shows the below error
1.-jar' is not recognized as an internal or external command,
operable program or batch file.
2.Whenever I type the command libGDX-setup.jar in the command prompt
Error:It displays the AlZip with the files present in it.
Questions
1.What is the location in which this jar file must be placed.
2.How to run the setup file when I double click or type the command.
Use
java -jar libGDX-setup.jar
command and make sure java is installed in your PC and path of java is defined in your system and added in Environment variable. In my PC path is
C:\Program Files\Java\jdk1.8.0_60\bin
It may be helpful, Thanks

Linux Java cp command

I'm on linux centos6 I run this command successfully :
java -cp "com.opendoorlogistics.connect.jar:com.opendoorlogistics.studio.jar" com.opendoorlogistics.connect.CommandLine -rb batchfile.odlbat
all the jars and the batch file are in the same folder.
If I move the 'com.opendoorlogistics.connect.jar' the 'com.opendoorlogistics.studio.jar' and the 'batchfile.odlbat' to a folder called myfiles what are the paths I need to add to my command to continue running it successfully?
Thanks

command line: Unable to access jarfile eps2pgf.jar

I'm working with a Mac OSX version 10.9.5 and I am a complete newbie to using the command line and running java files in it.
I just downloaded the eps2pgf folder, I unzipped it and I downloaded JDK8.
However when I try to run the command (thats given in the manual) in my Terminal, I get the following error:
Unable to access jarfile eps2pgf.jar
The exact command I use is:
java -jar eps2pgf.jar Bifurcatiediagram.eps -o Bifurcatiediagram.pgf
So in total the command before I run it is (with what is automatically there as well):
mbpvanasteyaert:~ Aranka$ java -jar eps2pgf.jar Bifurcatiediagram.eps -o Bifurcatiediagram.pgf
What am I doing wrong? Should the eps2pgf unzipped folder be in a specific folder/directory or...?

Java: Unable to access jarfile when running as an admin

I have a jar file named test.jar, which I am running with a batch script from the same folder.
Here's the batch code:
java -jar test.jar
pause
The jar itself works with no problems, and I can run it just fine.
However, if I try to run the batch file as an administrator (by right clicking it and choosing "Run as Administrator"), I get the following error:
Error: Unable to access jarfile test.jar
I'm using Windows 8.1, but this also happened on a machine running Windows 7.
What can I do to be able to run this as an Administrator?
i had the same problem that you and i solved it by changing
java -jar test.jar
to
java -jar %~dp0test.jar
%~dp0 holds the directory of your bat file (AFAIK) so %~dp0 will give Java the full path to the jar file solving the problem.
You could also ad a temp path to java
path=C:\Program Files\Java\jre1.8.0_40\bin
Java script
path=

Jar file not running from MSSQL stored procedure?

Hi All I'm trying to run a jar a file from MSSQL stored procedure. But I'm getting the error "'java' is not recognized as an internal or external command,"
I'm using the following command from stored procedure
EXEC master..xp_cmdshell 'java -jar C:\admin\yyyyy\xxxx.jar'
I have installed JRE and also added it in environment variables. I'm able to execute the same jar file from command prompt. Please let me know if I'm missing something
Have you tried including the full path to the java executable (ie: c:\java\jre\bin\java.exe -jar C:\admin\yyyyy\xxxx.jar)?

Categories

Resources