📄 readme.txt
字号:
This Source.zip contains two .java and two compiled .class files as follows:
1. PipeDemo.java
2. PeerGroupDemo.java
3. PipeDemo.class
4. PeerGroupDemo.class
To try the code files follow these steps:
Download and run JXTAShell as Relay
-----------------------------------
1. Download (http://download.jxta.org/nightlybuilds/jxtashell.zip) and install JXTA
Shell application and follow the configuration instructions as follows:
a. Start the shell application from X:\jxta2.1.1_bin\jxtashell\shell\run.bat
b. JXTA configurator window will appear containing four tabs.
i. In 'basic' tab enter name for JXTA Shell, for example "RelayPeer".
ii. In 'advanced' tab, check Enable incoming and Outgoing connections options for both
HTTP and TCP and enter your System IP in input boxes. JXME and JXTA peer(s) will
later use this IP address and port number (for example, 192.168.0.1:9700)
to connect with this relay.
iii. In 'Rendezvous/Relays' tab, enable 'Act as a Rendezvous', and 'Act as a JxtaProxy'
and 'Act as a Relay' options.
iv. In 'security' tab enter security password for your relay peer.
That's all to configure the JXTA shell as relay.
Download JXME library files
---------------------------
2. You need to download jxme library files from
"http://http://download.jxta.org/nightlybuilds/jxme.zip".
3. Unzip and get jxta_cldc.jar. You need to add this jxta_cldc.jar file in j2me
project you will build.
Download and Run J2ME Toolkit
-----------------------------
4. Download (http://java.sun.com/products/j2mewtoolkit/download-2_1.html) and install
the j2me toolkit.
5. Run KToolbar (i.e J2ME Wireless Toolkit) and Create a new project.
a. In project name option give any name, say "JxmeTutorial".
b. In Midlet class name option Write "PeerGroupDemo" as midlet class name
for the new project.
c. Copy the two .java code files in the "\src" directory of the newly
created "JxmeTutorial" project.
d. Place the JXME jar file (jxta-cldc.jar) in '\lib' folder of your project.
e. Build the program using the 'Build' button on the toolkit toolbar.
f. Now run your JXME application using the 'run' button on the toolkit toolbar.
Adding a new Midlet in project midlets list
--------------------------------------------
g. Both .java classes are individual midlets, so to try individual midlet you need to
add each midelt in project midlets list as follows.
i. Click settings button on J2METoolkit window.
ii. Click Midlets tab and click add button to add new midlet.
In 'Name' input enter a representation name for new MIDlet e.g. "PipeDemo".
and in 'Class' input enter class name of the midlet i.e. "PipeDemo".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -