• 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

Methods in java class files are not recognized.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am facing very basic issue! Please help me in to resolve this.

Problem:
I need to call a service and I have the client code in the jar file. I am not able to access the methods in the client.java(a file in client.jar).

Even the eclipse is not recognizing those methods. The outline tab in eclipse doesn't showing the methods. All the methods are public.
I am not sure why this is coming up, this issue is blocking me
Please help me if any one of you know the solution.
Thanking you in advance.

Thanks and Regards,
GK
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to put the JAR file in the classpath, or in Eclipse, add it to the dependency list of the project (right-click the project, choose Properties, Java Build Path, Add JARs or Add External JARs).
 
Girish Kodaganti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Young. The jar is already added to the dependencies. I am able to navigate to that file {pressing F3 in eclipse}.

In that class if I am trying to search for that particular method using {CTRL + SHIFT + O} I am not getting the method in that list. I could able to see that method implementation in that class. I am really wondering why this is happening!
First time am facing this weird behavior.
 
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
What OS? For me, Ctrl-O works, Ctrl-Shift-O isn't bound to anything by default.

Moving to IDEs.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Except you forgot the move
 
Ranch Hand
Posts: 95
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to remove the jar, clean the project and put it again.

In Windows, it's Ctrl + Shift + O to organize the imports.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic