All Questions
16
questions
0
votes
1
answer
616
views
Overwrote $PATH [duplicate]
I am new to linux and I was trying to set up path of JAVA_HOME but I accidentally wrote
export PATH=/usr/lib/jvm/java-11-openjdk-amd64
which I think overwrote $PATH.
I am quite sure I have messed up ...
1
vote
1
answer
2k
views
Pass/set `current directory` to/for a shell script from Java in Ubuntu 16.04
While trying to automate an installation process in Ubuntu 16.04 with a .jar file, I did not know how to solve the following problem:
Problem description
Part of the installation files automatically ...
1
vote
1
answer
351
views
CLASSPATH Security
On this post someone mentioned in a comment that adding .: to the PATH environment variable is a security vulnerability. Is adding .: to the CLASSPATH environment variable also a security ...
2
votes
4
answers
1k
views
Converting a windows Run.bat to a Run.sh
"c:\program files\java\jdk1.8.0_75\bin\java.exe" -noverify -Xbootclasspath/a:"LSA.jar";"lib/bcel-5.2.jar";"lib/rsyntax.jar";"client.jar" -javaagent:"LSA.jar"=config.js -jar client.jar
I have a ...
-2
votes
1
answer
75
views
Java compiles but not Executes [closed]
I tried many ways to execute but it is showing the same error
Error: Could not find or load main class corePKI_Pkg.AppKeyUtil
3
votes
1
answer
2k
views
Which of these Paths should I use as the value of JAVA_HOME?
I am running Ubuntu 16.04. I have downloaded JDK 7.0 from Oracle website and untar'ed and put it in a folder /opt/JDK/, such that the final install directory is /opt/JDK/jdk1.7.0_80 Then I executed ...
2
votes
1
answer
2k
views
Install java in a linux server without admin rights
I am using a cloud computing server were I don't have admin rights, for biology research which has java's
version:
user@server:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version ...
4
votes
1
answer
227
views
What is the "path to ant" that Crosswalk speak of?
I am in the process of setting up an Ubuntu 14.04 server to experiment with Crosswalk. I have installed the Java JDK, apt-get install default-jdk and ANT, apt-get install ant. whereis java returns /...
3
votes
2
answers
7k
views
How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?
I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed java-7-openjdk-i386 from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to ...
0
votes
1
answer
2k
views
when a .war is deployed in Glassfish, what's the path to WEB-INF?
Where "is" WEB-INF/duke.gif? What's the path(?) to this image?
thufir@doge:~$
thufir@doge:~$ jar -tf NetBeansProjects/WebApplication/dist/WebApplication.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
...
0
votes
1
answer
1k
views
JAVA path error in hadoop
I installed hadoop watching a youtube video. while I try to run this in terminal it gives me this error
srimanth@srimanth-Inspiron-N5110:~$ /usr/local/hadoop-2.6.0/bin/hadoop version /usr/local/...
0
votes
1
answer
5k
views
Cannot access a file using java.io.FileInputStream
I am working with java servlets and I need to access a file trail.xlsx within the java code using java.io.Fileinputstream class, for windows we have to add the drive letter but here we don't have any ...
0
votes
2
answers
407
views
Unable to set java path
Hey I am trying to save my Oracle JDK path by using following command
sudo gedit /etc/environment
And the I am saving path asL
JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
PATH="/usr/local/sbin:/usr/local/...
0
votes
1
answer
12k
views
ubuntu 12.10 can't find java, but it's exists!
I installed ZendStudio 5.5.1 on Ubuntu 12.04 and it runs well , no problem.
Today, I download Ubuntu 12.10 and intalled it on my / but keep the /home partition.
And now, I can't run the ZendStudio any ...
1
vote
2
answers
226
views
I installed the Oracle JDK manually but cannot use it
I have downloaded jdk1.6.0_32.bin (Sun JDK) from Oracle file, and I installed it in /usr/lib/jvm. Now when I try to compile a Java source file using javac it says:
The program 'javac' can be found ...
7
votes
2
answers
7k
views
Where should I store 3rd party jar (Java archive) files?
What would be the best place to save jar files of libraries I want to use in a project, that are not in any repositories, and how should I set permissions?
Should I put them in /usr/share/java, or is ...