Win a copy of Head First Go this week in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

[SOLVED] Geany, Java, and JDOM - package org.jdom does not exist  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the title mentioned, I cannot seem to get Geany to find JDOM. When I try to compile my code it points me to the line:


import org.jdom.*;

and tells me package org.jdom does not exist.


I've downloaded JDOM, built it, and got the jdom.jar file. I've put that in /usr/local/share/java/j (where I intend to put any other libraries like that if I need them for something.)

I've modified my .bashrc to include the CLASSPATH.

Running env outputs a lot of stuff, including:
CLASSPATH=.:/usr/local/share/java/jdom.jar

running echo $CLASSPATH outputs:
.:/usr/local/share/java/jdom.jar

If I open a terminal in the directory with my java file, I can successfully compile it using javac <name>.java just fine.

Any ideas on how to make Geany compile the code? Is there something special I have to do in Geany to get it to recognize the location of the jdom.jar?
 
Sheriff
Posts: 5747
149
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, janeenh cordova!

The subject line says SOLVED.  I take it that's not the case.

From what I can tell, Geany is an IDE.  I'll move this thread to the general IDE forum.
 
Knute Snortum
Sheriff
Posts: 5747
149
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After a quick look at it, I don't see anything to indicate that Geany can handle external Jar files.  Have you considered using a more complete IDE like Eclipse, IDEA, or NetBeans?
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!