Lenord Daly

Greenhorn
+ Follow
since Oct 03, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lenord Daly


That was it!! Thank you Vijitha.

My current working dir was c:\jax-ws\com\ibm\jaxws\tutorial\service

> javac -cp . Test.java {was looking for the class path starting with the current directory and could not find the ITest.class file}

Changed current working dir to c:\jax-ws

> javac -cp . com\ibm\jaws\tutorial\service\Test.java

Now compiles and I am unblocked.

Also like the idea of staying away from packages for the next few days. Best to reduce the degrees of freedom when it
comes to training.

Thanks again to the two of you for your help.

Len
14 years ago

I am back to java coding after 9 years and am having trouble getting started.
I am using jdk 1.6.


This is ITest.java
-------------------------------
package com.ibm.jaxws.tutorial.service ;

public Interface ITest {
public int getNumber() ;
}

This is Test.java
--------------------
package com.ibm.jaxws.tutorial.service ;

public class implements Test {
public int getNumber () { return (5*5) ; }
}

Now compile the interface. Current working dir is C:\jax-ws\com\ibm\jaxws\tutorial\service
> c:\sun\sdk\jdk\bin\javac -cp . ITest.java

Works great and I see the ITest.class file in the current working directory as expected.

Now I compile the implementing class --->> This class fails to compile
> c:\sun\sdk\jdk\bin\javac -cp . Test.java

Test.java:5 cannot find symbol
symbol: class ITest
public class Test implements ITest {

The above 3 lines are output of the compiler.

What am I doing wrong? Why can't the compiler resolve/find ITest.class and compile Test.java?


Thanks.

Len
14 years ago

Thanks Mario. I am now past this point.
14 years ago

I am installing the Websphere Portal Server 6.1 on my home PC. I am asked for a
fully qualified hostname (or IP address) and a node name. Now my PC is assigned
an IP address dynamically via DHCP. Installing on a machine at work then you know
the domain name etc. Anyone installed this on their home PC? What did you use as
fully qualified hostname and node name?

Len
14 years ago