• Post Reply Bookmark Topic Watch Topic
  • New Topic

Geany can't find Javac in Puppy Linux Tahrpup  RSS feed

 
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I'm having trouble with trying to get Geany to execute Java code, every time I try running Java code. I get an error saying can't found Javac. How do I fix this ?

Here the following things I've try to fix it :
Un-install and then reinstall Geany, I've updated my Java on my computer, Try download and install an older Geany but all these step have fail.

About my system:
Puppy Linux Tahrpup 6.0.3
Geany 1.24.1


Thank you for your help
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us the exact instructions you are using and the exact error messages.
You keep saying Javac but it is called javac.
 
Phillip Larson
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello thanks for the quick reply ...

I 'm still having trouble with getting Geany. The path that I been trying to use to get geany to work is /my-application/jre1.8.0_45/bin/java. I also did a file search for javac and came back with no files found. Is there something I miss or need to download? Where would the javac file be at?

Thank you for your help
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you actually installed Java®? You will find installation instructions in our FAQ.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the FAQ which I gave you a link to, it says to test your installation with the following instructions:
java -version
javac -version
I presume you are not getting a sensible result from those instructions.
 
Phillip Larson
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for your help .... lol At a moment before I got your message I notice that I downloaded the wrong Java.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surprising what you can do; I once spent ages failing to install Java® on a new Linux installation before I found I had mistakenly installed a 32‑bit OS.
 
Phillip Larson
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I'm having a lot of trouble trying to set the JAVA_HOME and PATH environment variables. I don't even know where start or if I doing it right.

I've try /root/bin/.baschrc but nothing happen. I'm so lost cause this is my first time setting up something like this for linux.
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Phillip Larson wrote:
I've try /root/bin/.baschrc but nothing happen. I'm so lost cause this is my first time setting up something like this for linux.

From the link Campbell posted above
Open the file called ".bashrc" in your home directory, with a text editor. From the shell, one can enter "gedit .bashrc" or "gedit ~/.bashrc", to use gedit. Don't forget the dot which means it is a hidden file.


 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Home directory. Not root. If you have used su/sudo to become root, turn back to normal user with exit.
Simple: open a terminal, pass the instruction
cd
… (just cd, no arguments, or cd ~) and you are in your home directory. (You may start off in “home” anyway in which case the prompt will say .../home/philip....) Then
gedit/kate/pluma/vim/anyOtherEditor .bashrc
… and add a line like
export PATH=/folder/java/jdk1.8.0_45/bin:$PATH
I do not know whether you need to push the enter key after that line. Precede it with something like
# Edited PATH to include Java® on 27th May 2015
The hash sign turns that into a comment.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!