Solved

J2ME & UnicastRemoteObject

Posted on 2002-07-28
13
287 Views
Last Modified: 2013-11-23
Hello poeple,

I am new to J2ME and I am experiencing a major Unresolved class error from the JavaCheck tool.

I need to use the UnciastRemoteObject class to my PDA but the JavaCheck tool tells me that this class is unresolved.

I cannot believe that there is no way around this problem.

My project is heavily based on this class and is of great importance to find a solution to that.


Please any help would be greatly appreciated.

Thanxs
0
Comment
Question by:pouli
  • 8
  • 5
13 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 7184563
there is J2ME[tm] RMI Optional Package

http://wwws.sun.com/software/communitysource/j2me/
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 7184564
you can probably read something more about it at

http://www.j2meolympus.com/j2me/cdc/foundation/rmi/j2me%20rmi%20profile.html

hint:
www.google.com is your friend.
0
 

Author Comment

by:pouli
ID: 7184932
Heyhey

I saw the links you gave.
what I can infer from what I read is that UnicastRemoteObject is supported by the personal profile.

Althgouh it is optional.

What I cannot understand is why the javaCheck tool tells me that the UnicastRemoteObject is unresolved.

This class is supported by the J2ME RMI profile.

====

Becasue it is optional this menas that depends form the manufacturer if he includes it or not ?

If it is not included could I just have it as an optional downlaod for the interested peoeple ?

====


0
 

Author Comment

by:pouli
ID: 7184958
I have just now saw that I have one more important unresolved class the xx.xx.x.Communicator_Skel depends on unresolved class "java.rmi.server.Operation

This class is deprecated and there is no substitue.


I cannot(!) believe that it is so difficult to make a callback to the client.

What I want at the end of the day is the server to call specific methods to the client.

Do I ask for a lot ???

What I do though is to extend the UnicastRemoteObject and implement the _interface class wgich extends the Remote object.

Yesterday I found out that I can make a callback without extending the UnicastRemoteObject but with:

UnicastRemoteObject.exportObject(this);

Do you think this will use less classes ?

Have you faced any problem liek that before ??
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 7184970
this is Personal Java which works in enviroments with limited resources. it's very possible that most of the PersonalJava devices does not support RMI at all. you'd better redesign your application to use some other communication protocol.
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 7184998
not sure, but you may need to install the extension before running javaCheck ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:pouli
ID: 7185006
I am actaully interested in the Zaurus PDA that is actually a high-end PDA.

It is too costly for me to redesign my application :)

I have to prove to myself that I cannot do anything else before procedding to the solution you said.

It is simply too much work I have to do. I have to redesign the server etc.

Certainly in the next project I will do I will bare in mind this.

It is just my 1st project with J2ME anyway.

I heard that Zaurus java is like having Java 1.1.8
If this is true then all these classes are supported.

I will find out more about Zaurus and tell you.

www.myzaurus.com
0
 

Author Comment

by:pouli
ID: 7185008
What extension ???
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 7185012
J2ME RMI profile
0
 

Author Comment

by:pouli
ID: 7185013
I will have a look
0
 

Author Comment

by:pouli
ID: 7185074
I was not able to find a specification file (.spc) that the Javacheck needs to install it.

I downloaded as well the reference implementation files (.java)

I tried to compile them with normal javac through commnad line but it generated some errors.

There is a folder build/share that has 2 files
defs_rmi_pkg.mk
rules_rmi_pkg.mk

I think I have to use these files in order to compile them.

Do you know what I am supposed to do ?
0
 

Author Comment

by:pouli
ID: 7188138
Hey hey I need your lights.

I found someone with a Zaurus PDA
and we are just right now online trying to make things work

I cannot compile (rmic) with the 1.1.8 version without the default security options.

What I mean is when I make
c:\jdk1.1.8\rmic\rmic Server (for example)

I take a message that says that the default security settings are used.

When I try to run the program I take security exceptions and this is I think because of the default settings.

The question is: How can I compile the classes that extend the UnicastRemoteObject with my security settings? (Possibly I will permit everything for testing)

Thank you in advance.
0
 

Author Comment

by:pouli
ID: 7190694
Heyhey problems sovled :)

I found someone who owns a Z and he was willing to help me :)

The Z supports 1.1.8

But it does not support rmiregistry.
It supports though UnicastRemoteObject and it is possible to make a callback to the client from the server.


New problems have arised.

This is called Firewall


I will pos a new question if you think you could help me please have a look.

I will set the title to "RMI Tunelling & Firewalls"

Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now