This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Chris Beihl

Greenhorn
+ Follow
since Jan 02, 2007
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 Chris Beihl

I've found that whenever I use html tags within a JLabel, it will wordwrap when resized, but when using a JLabel without html and it is resized to smaller than its preferred size it cuts off the end and add an ellipsis "...".

If you are using html tags and your JLabel is still not word wrapped I suspect that your layout manager is not resizing the JLabel below its preferred size. Some layout managers resize the components and some just clip the edges off.
10 years ago
To find out your classpath of the run profile you launched :

1. pull up the run dialog ( Run -> Run... )
2. click on the run profile you are using
3. click the Classpath tab
4. look under User entries

Good luck
11 years ago
I tried to run your code sample but there are several unresolved types :
GUI
ResourceAllocator
CPU
Memory
DiskS
Resources

Without those other classes its difficult to run your example...
Usually that error comes up when one of the VMs cannot find a class it needs to unmarshall the serialized data. Are you running both VMs on the same machine? If not, you probably don't want to use a CODEBASE with a file URI.

RMI looks in the VM classpath first then checks the CODEBASE.

Double check the runtime classpaths for both VMs and make sure that all the classes you pass between the two VMs are present ( don't forget classes that are referenced inside other classes ).
11 years ago