I work from home and connect to the office over a VPN. When I'm
connected to the office, it takes over 5 minutes for me to create a web
service using IBM Rational Application Developer 6.0. When I am not
connected to the VPN, it takes about a minute. Under both scenarios,
the java source code is local on my machine. I had our network guy run
a packet trace and the slow down was Rational attempting to resolve
things like java.io. It can't find it on the internet, so then it
attempts java.io.<company name>.com. Eventually it times out and goes
onto the next one. Where does java.io actually exist? I thought it
was local on my machine as part of the java or Rational installation.
Does it actually go out to the internet for these imports? Is there a
way to tell Rational a specific place to look?
Jeroen Wenting - 05 May 2006 19:32 GMT
Your development environment must be seriously f.cked up if it looks for
something that is installed locally on a remote machine...
RTFM and get your system set up correctly, most likely you have foolishly
told it to do something it shouldn't, like connect to your company servers
for things that are on your harddrive (either that or IBM has done something
foolish in creating their "tools", wouldn't be the first time).
>I work from home and connect to the office over a VPN. When I'm
> connected to the office, it takes over 5 minutes for me to create a web
[quoted text clipped - 8 lines]
> Does it actually go out to the internet for these imports? Is there a
> way to tell Rational a specific place to look?
Mark Thomas - 07 May 2006 12:17 GMT
> I work from home and connect to the office over a VPN. When I'm
> connected to the office, it takes over 5 minutes for me to create a web
[quoted text clipped - 8 lines]
> Does it actually go out to the internet for these imports? Is there a
> way to tell Rational a specific place to look?
It's in rt.jar
Mark
dmckeon@ameritas.com - 08 May 2006 20:10 GMT
Thanks, Mark. I located the rt.jar file and included it in my
ClassPath statement. It didn't make a difference. Is there something
else I need to do with it?
Roedy Green - 08 May 2006 20:54 GMT
>Thanks, Mark. I located the rt.jar file and included it in my
>ClassPath statement. It didn't make a difference. Is there something
>else I need to do with it?
You don't put rt.jar on the classpath. It is included automatically.
See http://mindprod.com/jgloss/classpath.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
dmckeon@ameritas.com - 08 May 2006 21:28 GMT
If it's included automatically, do you know why it might be looking on
the internet rather than on my local machine?
James McGill - 08 May 2006 21:55 GMT
> If it's included automatically, do you know why it might be looking on
> the internet rather than on my local machine?
Relatively few people run Rational; the high price tag gives it a very
limited distribution. Also your problem sounds very strange to me.
Basically you java compiler is "looking on the network" for basic
required components. What network? Via what protocol?
Do you have a build procedure that works outside your IDE? Say, an ANT
script that you can run from a shell with a standard JDK? What happens
if you disable the network entirely?
Have you put your question on any IBM forums?
Roedy Green - 08 May 2006 21:59 GMT
>If it's included automatically, do you know why it might be looking on
>the internet rather than on my local machine?
Java.exe wakes up and looks in the registry to find the current JVM.
That is how it finds rt.jar.
What is your evidence it is looking on the Internet for rt.jar?
Assuming it truly is, check out the registry entries to see if they
are screwed. You might consider uninstalling all Java, wiping out all
registry entries and starting from scratch installing JVMs and JREs in
chronological order, ideally just one.
see http://mindprod.com/jgloss/jdk.html
http://mindprod.com/jgloss/registry.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Wayne - 09 May 2006 10:39 GMT
> Thanks, Mark. I located the rt.jar file and included it in my
> ClassPath statement. It didn't make a difference. Is there something
> else I need to do with it?
If you are using Sun's JDK with the IBM front-end, (I don't know
your toolset), the system finds rt.jar (formally classes.zip)
by looking in the "bootclasspath". Both javac and java
have a bootclasspath command line argument to allow you to
over-ride the default location, which in your case appears
to be messed up somehow. As a temporary measure try
to set the bootclasspath command line argument for your IBM
tool, and see if that helps.
The default bootclasspath is probably stored in a config file
someplace, or in the registry for windows. Search for "rt.jar",
and change the bad network location to your local location.
but make sure you have the right version!
-Wayne Pollock