• 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

Java Files

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello my mentors

Technically am a business student but I have recently developed the passion to code and i choose java as the language i want to learn,unfortunately i don't have the luxury to go back to the university for four years to get a degree in IT so am doing self study which i believe for me to learn , I will have to take up challenges.

I have decided to use a live project to enhance my codding skill but i am facing some difficulties.

I imported a bunch of java files from WSDL and came in a package and this package contains lots of files that to be honest it has discouraged me in perusing my dream of becoming a programmer.

as you can see from my screen shots  com\aspace\ftress\interfaces70\ejb has its own files in it and com\aspace\ftress\interfaces70\ftress\DTO has it own fils as well and it goes on and on and on but all I need is to write a code for customers to be able to reset their own passwords.

so my question is.

1. Do i have to creat a new file and import all these classes?

2. how do i get the folder into Intellij or Eclipse

Please see the images attached
1.PNG
[Thumbnail for 1.PNG]
2.PNG
[Thumbnail for 2.PNG]
3.PNG
[Thumbnail for 3.PNG]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kojo,

1) Assuming you are referencing all these classes in your new class, then yes you need to import them all. Note that there is a wildcard import to get all the files in a package so you can just write:


2) To get that project into Eclipse, I recommend doing File -> New Java Project and copying the directories into the src folder. Alternatively, you could do File > Import and import from the file system. But I think that assumes you have a .classpath file
 
kojo Owusu-Ansah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jeanne,

I followed your instructions and i have them in Eclipse now,but I want to know,is it only Eclipse that has the ability to get this done?why not IntelliJ?

My questions are:

1. Do i need to create a new class like PassWordReset and import all those plenty classes or just the folders as you have indicated.

2. the API documentation specified to use soapui to access the wsdl and yes if i do i see the exact files i need to work on and you can see the attached screenshot.
if you see on the left hand side of the soapui it has a bunch of methods...those are the files i need that am not seeing them among java files and i cant even download them as well so what is soapui doing differently?

sorry to disturb you but i really need someone to point me in the right direction to start.
1.PNG
[Thumbnail for 1.PNG]
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kojo Owusu-Ansah wrote:I followed your instructions and i have them in Eclipse now,but I want to know,is it only Eclipse that has the ability to get this done?why not IntelliJ?


I didn't say IntelliJ can't import a project. It can. You asked about Eclipse or IntelliJ so I picked the one I use more.

kojo Owusu-Ansah wrote:
1. Do i need to create a new class like PassWordReset and import all those plenty classes or just the folders as you have indicated.


Aren't the classes in those folders/packages? If so, the two alternatives are equivalent.

kojo Owusu-Ansah wrote:
2. the API documentation specified to use soapui to access the wsdl and yes if i do i see the exact files i need to work on and you can see the attached screenshot.
if you see on the left hand side of the soapui it has a bunch of methods...those are the files i need that am not seeing them among java files and i cant even download them as well so what is soapui doing differently?


Ok. So you are using SOAP. Then you definitely need more than importing just those two folders. The methods you see are inside the class so you need to add the jar to the project classpath and import PasswordRest to get access to them.
 
kojo Owusu-Ansah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Jeanne..they are not in there so do i have to create them myself or what do you propose?

Secondly about the IDE I was only asking a question sorry considering we both have IDE's we comfortable with  but if Eclipse that can help me accomplish my goal I will adopt to that.

 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't udnerstand. You took a screenshot of them, how are they not in there.

Eclipse and IntelliJ are both fine IDEs and I'm sure they both do this. I've never needed this feature in IntelliJ so I don't know how to do it off the top of my head.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic