Results 1 to 6 of 6
- 01-02-2011, 07:11 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 15
- Rep Power
- 0
web server error for J2ME application
Hi,
I am trying to execute a J2ME application on a web server. I am trying to configure this web server on my home PC.
I have placed my jar files at
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
This is the default Document root path in httpd.conf file.
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
When I am trying to run my jar file on the server as follows
http://localhost/NetworkDemo-SERVER.jar
I get following error as
'Failed to load Main-class attribute from .. '
Please see the screenshot attached.
Any help or guidance would be appreciated.
Thanks in advance,
Vishal
- 01-02-2011, 07:51 PM #2
Member
- Join Date
- Dec 2010
- Posts
- 15
- Rep Power
- 0
Open file: NetworkDemo-SERVER.jad and add line:
And finally open in your browser address: http://localhost/NetworkDemo-SERVER.jadJava Code:http://localhost/NetworkDemo-SERVER.jar
- 01-03-2011, 04:11 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 15
- Rep Power
- 0
Hi Mi14chal,
I tried that but then I am getting a different error.
com.sun.kvem.midletsuite.InvalidJadException: Reason = 36
Error in opening jar file: NetworkDemo-SERVER.jar
I am also copying the contents of NetworkDemo-SERVER.jad here
MIDlet-1: Socket Demo, , socket.SocketMIDlet
MIDlet-2: Datagram Demo, , datagram.DatagramMIDlet
MIDlet-Description: Networking examples.
MIDlet-Jar-Size: 13436
MIDlet-Jar-URL: NetworkDemo-SERVER.jar
MIDlet-Name: NetworkDemo-SERVER
MIDlet-Permissions: javax.microedition.io.Connector.http,javax.microed ition.io.Connector.socket,javax.microedition.io.Co nnector.https,javax.microedition.io.Connector.data gram,javax.microedition.io.Connector.serversocket, javax.microedition.io.Connector.datagramreceiver,j avax.microedition.io.Connector.comm,javax.microedi tion.io.PushRegistry
MIDlet-Vendor: Sun Microsystems, Inc.
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
http://localhost/NetworkDemo-SERVER.jar
I also tried overriding contents of MIDlet-Jar-URL
MIDlet-1: Socket Demo, , socket.SocketMIDlet
MIDlet-2: Datagram Demo, , datagram.DatagramMIDlet
MIDlet-Description: Networking examples.
MIDlet-Jar-Size: 13436
MIDlet-Jar-URL: http://localhost/NetworkDemo-SERVER.jar
MIDlet-Name: NetworkDemo-SERVER
MIDlet-Permissions: javax.microedition.io.Connector.http,javax.microed ition.io.Connector.socket,javax.microedition.io.Co nnector.https,javax.microedition.io.Connector.data gram,javax.microedition.io.Connector.serversocket, javax.microedition.io.Connector.datagramreceiver,j avax.microedition.io.Connector.comm,javax.microedi tion.io.PushRegistry
MIDlet-Vendor: Sun Microsystems, Inc.
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
None of these work.
Do you have any idea ?
Vishal
- 01-03-2011, 05:22 PM #4
Member
- Join Date
- Dec 2010
- Posts
- 49
- Rep Power
- 0
Would you care explain what on Earth you trying to do with JME files on Java server?
- 01-04-2011, 05:18 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 15
- Rep Power
- 0
Hi Peter,
I am a trying to implement a Client server application. The client has to run on the mobile and server program has to run on the web server.
Initially I had implemented normal Java( J2SE ) server. This java server is not able to communicate with J2ME client ( somehow ).
Then I had implemented a server using J2ME API. This is actually the server which was available on J2ME Sun Wireless Toolkit 2.5.2_01. I had modified this server code.
This server code I have been trying to run on the web server which I had configured on my home pc.
Hope I have been able to explain why I wanted to run J2ME application on the web server.
Do you have any idea to the query which I had posted.
Thanks and Regards,
Vishal
- 01-04-2011, 08:19 PM #6
Member
- Join Date
- Dec 2010
- Posts
- 49
- Rep Power
- 0
Beginning J2ME: From Novice to Professional - Chapter 10 Connecting to the World is all you need to start writing simple applications for MIDlet to server communication.
Similar Threads
-
web server error for J2ME application
By vishal21 in forum CDC and Personal ProfileReplies: 0Last Post: 01-02-2011, 07:09 PM -
Not able to launch J2ME application
By vishal21 in forum CLDC and MIDPReplies: 2Last Post: 12-02-2010, 02:58 PM -
J2ME Application Developer
By pooja_k in forum Jobs OfferedReplies: 0Last Post: 04-23-2010, 02:02 PM -
JAVA application to J2ME
By coldvoice05 in forum Forum LobbyReplies: 0Last Post: 10-10-2009, 04:33 PM -
Sending J2ME application by blue tooth (by J2ME application). Very URGENT!!!
By maruffaiz in forum CLDC and MIDPReplies: 0Last Post: 04-22-2009, 01:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks