• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiling Code without a class file!

 
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey Guys,

first let me tell you the project details,

Details - Its a very small project having 3 classes and certain number of jars in its class path in the batch file.

now for the problem -

Out of those 3 classes - I have the problematic situation in just one small method in a small class -

Situation - In the class I have a method which throws two exceptions lets say...
method throws ConfusedException, ExampleException {
<...body...>
}

now after analysis, I found out that this method never throws the ConfusedException and it's just a leftover from previous codes that have been there... (very old application)...

okay when I compile the entire class with the existing jars on the main server it compiles fine and even runs! but when I took the code to my local machine and imported to eclipse it was showing me compile time errors, I tried to run it on my local machine...but..

Weird Problem - There is no class called ConfusedException (in my case) and its not even there inside any jars, nowhere absolutely nowhere! not even as an inner class..... I found out a dependency tool which lists out the dependent classes that tool listed all the paths but for this class its showed up as "NA"

I am actually confused as - from where this class is taken in the server and howcome I'm not getting the class ? I have even searched all the system files and jars in the original system where this runs fine for that class and also my local machine.. the file is not found anywhere... I just want to know where all I should look for this class.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you can compile it then ConfusedException exists in *something* on your classpath.

Have you examined each of the jars on the classpath when you compile?
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic