Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-21 Thread zeeshan aamir
yes mark,

I think the prob is in  my class path.

Javac command runfine but when I try

Java jade.boot

Its not work

I set the class path for this

C:\Program Files\Java\jade

commons-codec-1.3.jar

jade.jar

jadeTools.jar

iiop.jar

http.jar



I set these path.

set path= C:\Program Files\Java\jdk \bin

set *JADE_HOME*= C:\Program Files\Java\jade

set CONTROLLER=127.0.0.1

set *classpath*=%*JADE_HOME*%

set *classpath*=%*JADE_HOME*% ;%*JADE_HOME*%\*jade*.*jar*

set *classpath*=%*JADE_HOME*% ;%*JADE_HOME*%\*jadeTools*.*jar*

set *classpath*=%*JADE_HOME*% ;%*JADE_HOME*%\*iiop.jar*

set *classpath*=%*JADE_HOME*% ;%*JADE_HOME*%*\http.jar*

set *classpath*=%*JADE_HOME*% ;%*JADE_HOME*%\ *commons-codec-1.3*

*.jar*



I don’t know why it not work. May be this is the problem.


Regards,
ZEESHAN

On Sun, Mar 21, 2010 at 7:30 PM, Mark Wieder  wrote:

> Mark-
>
> Saturday, March 20, 2010, 4:31:00 AM, you wrote:
>
> > Sorry, I didn't mean to scare you off, Mark ;-)
>
>  Between you and Jan, I figure things are in good hands now...
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Video Lectures of Rev Studio

2010-03-20 Thread zeeshan aamir
is there is on any site complete video lectures of Rev stuido is placed.

Kindly send me link.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-20 Thread zeeshan aamir
Hay to all,

now you can give me suggestion, initial program, sample code with your own
folder in this link.


http://www.4shared.com/dir/34362030/72462f27/RunRev_Suggestion.html

Pass:  1234


Thanks for your all affords and corporations.
Regards,
ZEESHAN AAMIR
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-20 Thread zeeshan aamir
hay, jan thanks,

i uploaded all the files. on these links kindly see it.

http://www.4shared.com/file/245437167/a47bf1a6/JADE_WITH_RUNREV.html

http://www.4shared.com/file/245437182/4a9228a7/SocketTestServerCleint.html

http://www.4shared.com/file/245437204/696eb9c3/server.html

http://www.4shared.com/file/245437244/d027cc7/Client.html

http://www.4shared.com/file/245437260/3859da5c/error.html

http://www.4shared.com/file/245437281/d1ddc744/JAD_AND_RUNREV.html

http://www.4shared.com/file/245440617/c182954d/test_normal.html



http://www.4shared.com/file/245448691/258c929f/communicate_between_JADE_and_R.html



i have these commands,
http://docs.runrev.com/Command/open-socket
http://docs.runrev.com/Command/close-socket
http://docs.runrev.com/Command/read-from-socket


i see examples from http://www.quartam.com and some other link that
communication between JAVA and rev but cant find any example of JADE
(NetBeans) so thats why i try these examples to just test that is it
possible that JADE java file communicate in the same way?

Regards,
ZEESHAN


On Sat, Mar 20, 2010 at 1:36 PM, Jan Schenkel  wrote:

> Looking back, I was perhaps being a bit harsh. The thing is: most developer
> communities do not react well to a vague description of something that
> "doesn't work as expected" without background information. We always tell
> kids to do their own homework, not write it for them ;-)
>
> What exactly are you trying to accomplish? What is JADE, and how does your
> Java code interact with it? I have quite a bit of experience getting revTalk
> to exchange information with Java processes - bit it all stands or falls
> with the intended architecture.
>
> If your Java code is a simple command-line tool for one-off jobs, you can
> use the 'shell' function to call it with parameters and retrieve the output.
> If your interaction needs to be more elaborate, topology comes into play.
>
> Assuming that the Java program runs on the same machine, you can opt for
> inter-process communication via standard input/output (your Java code uses
> the System.in object to read the data from and the System.out object to
> write the data back to the rev-based application that uses 'open process',
> 'read from process', 'write to process' and 'close process' commands to send
> data to your Java program and retrieve results.
>
> If the Java program runs on a different machine, your best bet is socket
> communication. For the Java side, I recommend you pick up the book 'TCP/IP
> Sockets in Java' (ISBN: 978-0-12-374255-1). On the revTalk end, you'll want
> to look at the 'open socket', 'read from socket', 'write to socket' and
> 'close socket' commands to exchange the data over the socket.
>
> What it all boils down to, is picking a method of communication, and a
> protocol that describes the interaction: which side takes the initiative and
> in what format do you send the request and receive the reply. You can dream
> up your own protocol, copy the HTTP client-server model, exchange the data
> as plain text or structured in XML.
>
> Speaking of XML, why not rely on SOAP? Your Java code could be housed in a
> Glassfish application server, and rely on Web Services technology to 'post'
> data from rev to the app server - where your POJO classes transparently
> offer services to any SOAP-capable client.
>
> First determine your goal, and then we can help you figure out the best way
> to achieve that goal. There is more than one way to skin a cat, as the
> saying goes...
>
> Jan Schenkel
> =
> Quartam Reports & PDF Library for Revolution
> 
>
> =
> "As we grow older, we grow both wiser and more foolish at the same time."
>  (La Rochefoucauld)
>
>
> --- On Sat, 3/20/10, Jan Schenkel  wrote:
> > Hi Zeeshan,
> >
> > My apologies if this sounds a bit blunt, but from the
> > exchanges it seems to me that you are not only a beginner in
> > revTalk, but not very experienced with Java either when it
> > comes to socket programming and starting daemon processes
> > and its classpath challenges.
> >
> > At RunRevLive'09 I gave a presentation on how revTalk and
> > Java can interact in various ways. You can download the
> > slides and example code from the downloads section of my
> > website:
> > 
> >
> > Come to think of it, that's probably how you assembled
> > those first bits of code: setting the defaultFolder to the
> > path of the stack is a trick I used there to keep everything
> > together in a single folder and reduce scripting complexity.
> > Not something a newbie will find on day one ;-)
> >
> > For this to work, the compiled Server.class file must be in
> > the same directory as the rev stack; if it's sitting
> > somewhere in your NetBeans project directory, it is not
> > going to find it.
> >
> > Merely repeating that something doesn't work, is not going
> > to resolve your situation: take a step back, think through
> > the different concepts and learn more about pro

Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-20 Thread zeeshan aamir
hi Zryip,

if you try this code in Netbeans then you see that it work fine. and giving
the output. but the main problem is that i made this in JADE and i want to
cummnicate JADE with Rev. i try the Jan Schenkel examples from
http://www.quartam.com

hare in this link. rmj.zip and tea.zip it work fine on JAVA and Rev, so
tahts why i try JADE program.
I copy from src in netbeans where netbeanss program store. and take it in
same folder where it is rev file i have then i compile this to make a .class
javac Server.java
it makes Server.class.
but i try same meathod to check the connectivity but it not works.

Regards,
ZEESHAN

On Sat, Mar 20, 2010 at 2:56 PM, zryip theSlug wrote:

> 2010/3/19 zeeshan aamir :
>  ……
> >
> >
> >
> > //Code for Server.java  (JADE)
> > package Server;
> >
> > import java.io.DataInputStream;
> > import java.io.IOException;
> > import java.net.ServerSocket;
> > import java.net.Socket;
> >
> > public class Server {
> > public static void main (String[] args) throws IOException{
> > ServerSocket server=new ServerSocket(6800);
> > System.out.println("Server Started");
> > Socket client= server.accept();
> > DataInputStream in= new DataInputStream(client.getInputStream());
> >
> > System.out.println("Client Syas: " + in.readUTF());
> > }
> > }
> >
> >
> .
> > /7code for client Socket. (JADE)
> >
> >
> > package Cleint;
> >
> > import java.io.DataOutputStream;
> > import java.io.IOException;
> > import java.net.Socket;
> >
> > public class Cleint {
> > public static void main (String[] args) throws IOException {
> > Socket client= new Socket("localhost",6800);
> > System.out.println("Connected to server");
> > DataOutputStream out = new DataOutputStream(client.getOutputStream());
> > out.writeUTF ("AllowServer");
> >
> >
> > }
> >
> > }
> > .
> >
> > *RunRev* Main
> >
> > function StackPath
> >   local tPath
> >   --
> >   put the effective filename of this stack into tPath
> >   set the itemDelimiter to slash
> >   delete item -1 of tPath
> >   --
> >   return tPath
> > end StackPath
> > 
> > *For Server  Communication Button in Rev*
> >
> >
> > on mouseUp
> >   local tDefaultFolder, tResult
> >   --
> >   put the defaultFolder into tDefaultFolder
> >   set the defaultFolder to StackPath()
> >   --
> >   put shell("Server 6800") into tResult
> >   --
> >   set the defaultFolder to tDefaultFolder
> >   answer tResult
> > end mouseUp
> >
> > *
> > Clinet button coading in Rev
> > *
> >
> >
> >
> > on mouseUp
> >local tDefaultFolder, tProcess
> >   --
> >   put the defaultFolder into tDefaultFolder
> >   set the defaultFolder to StackPath()
> >   --
> >   put "Client" into tProcess
> >   open process tProcess for neither
> >   --
> >   set the defaultFolder to tDefaultFolder
> > end mouseUp
> >
> >
> >
> > ..
> >
> >
> >
> > I am very thankful to you for this kindness in advice.
> >
> >
> >
> > Kindly reply me on your earliest.
> >
> >
> > Regards,
> >
> > shani
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
> Hello Zeeshan,
>
> I'm not a specialist, but you actually listen on the 6800 port but you
> are not sure that your port is open. You throw the exception but not
> catch it.
> To avoid bugs, add a couple of try/catch statement like this :
>
> public class Server {
>  public static void main (String[] args) throws IOException{
>  try {
>  ServerSocket server=new ServerSocket(6800);
> } catch (IOException serverException) {
> System.out.println("Server error : Could not listen on port 6800");
> System.exit(-1);
> }
>  System.out.println("Server Started");
> Socket client = null;
> try {
> Socket client= server.accept();
> } catch (IOException serverException) {
> S

Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-20 Thread zeeshan aamir
hay jan,

thanks, i have these examples, but my Server.java is build in Netbeans JADE
and when i run it in simple command like.

Compile
javac Server.java
it makes Server.Class

and it is in same folder where rev is. but when i run this through rev or
directly from command promt
like java Server

it gives error where as it run fine in JADE and gives output.

you see my proevious emails for Source code.
and try it on JADE, it works on JADE but how can i done this in simple java.

regards,
zeeshan

On Sat, Mar 20, 2010 at 8:32 AM, Jan Schenkel  wrote:

> Hi Zeeshan,
>
> My apologies if this sounds a bit blunt, but from the exchanges it seems to
> me that you are not only a beginner in revTalk, but not very experienced
> with Java either when it comes to socket programming and starting daemon
> processes and its classpath challenges.
>
> At RunRevLive'09 I gave a presentation on how revTalk and Java can interact
> in various ways. You can download the slides and example code from the
> downloads section of my website:
> <http://www.quartam.com/downloads.html>
>
> Come to think of it, that's probably how you assembled those first bits of
> code: setting the defaultFolder to the path of the stack is a trick I used
> there to keep everything together in a single folder and reduce scripting
> complexity. Not something a newbie will find on day one ;-)
>
> For this to work, the compiled Server.class file must be in the same
> directory as the rev stack; if it's sitting somewhere in your NetBeans
> project directory, it is not going to find it.
>
> Merely repeating that something doesn't work, is not going to resolve your
> situation: take a step back, think through the different concepts and learn
> more about processes and socket programming.
>
> Jan Schenkel
> =
> Quartam Reports & PDF Library for Revolution
> <http://www.quartam.com>
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."
>  (La Rochefoucauld)
>
>
> --- On Fri, 3/19/10, zeeshan aamir  wrote:
> > Hay Mark Schonewille,
> >
> > i tested with the changes in command emailed by Mark
> > Wieder  ( put
> > shell("Server 6800") into tResult)
> >
> > in server button in Rev like this
> > *For Server  Communication Button in Rev*
> >
> >
> > on mouseUp
> >local tDefaultFolder, tResult
> >--
> >put the defaultFolder into
> > tDefaultFolder
> >set the defaultFolder to StackPath()
> >--
> >put shell("java Server") into tResult
> >--
> >set the defaultFolder to tDefaultFolder
> >answer tResult
> > end mouseUp
> >
> > *
> > *
> >
> >
> >  this command will work but it gives this error.
> >
> > java.lang.
> > NoClassDefFoundError: Server (wrong name: Server/Server)
> > at
> > java.lang.ClassLoader.defineClass1(Native Method)
> > at
> > java.lang.ClassLoader.defineClassCond(Unknown Source)
> > at
> > java.lang.ClassLoader.defineClass(Unknown Source)
> > at
> > java.security.SecureClassLoader.defineClass(Unknown Source)
> > at
> > java.net.URLClassLoader.defineClass(Unknown Source)
> > at
> > java.net.URLClassLoader.access$000(Unknown Source)
> > at
> > java.net.URLClassLoader$1.run(Unknown Source)
> > at
> > java.security.AccessController.doPrivileged(Native Method)
> > at
> > java.net.URLClassLoader.findClass(Unknown Source)
> > at
> > java.lang.ClassLoader.loadClass(Unknown Source)
> > at
> > sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > at
> > java.lang.ClassLoader.loadClass(Unknown Source)
> > Could not find the main class: Server.  Program will
> > exit.Exception in
> > thread "main"
> >
> > but i try it on same as in same folder where .Java and
> > .Class file placed.
> >
> > Regards,
> > ZEESHAN
> >
>
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
Hay Mark Schonewille,

i tested with the changes in command emailed by Mark Wieder  ( put
shell("Server 6800") into tResult)

in server button in Rev like this
*For Server  Communication Button in Rev*


on mouseUp
   local tDefaultFolder, tResult
   --
   put the defaultFolder into tDefaultFolder
   set the defaultFolder to StackPath()
   --
   put shell("java Server") into tResult
   --
   set the defaultFolder to tDefaultFolder
   answer tResult
end mouseUp

*
*


 this command will work but it gives this error.

java.lang.
NoClassDefFoundError: Server (wrong name: Server/Server)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Server.  Program will exit.Exception in
thread "main"

but i try it on same as in same folder where .Java and .Class file placed.

Regards,
ZEESHAN

On Sat, Mar 20, 2010 at 1:45 AM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Zeeshan,
>
> Can you provide more info? For example, are you succesfully running the
> server? Can you connect to it with the original Jade client? What exactly
> happens when you try running Mark Wieder's code?
>
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
>
> Economy-x-Talk is always looking for new software development projects.
> Feel free to contact me for a quote.
>
> Op 20 mrt 2010, om 01:32 heeft zeeshan aamir het volgende geschreven:
>
>
>  Thanks Mark Schonewille and Mark Wieder,
>>
>> I try Mark Wieder code in Server button code but its not work.
>>
>> on mouseUp
>>  open socket "localhost:6800" with message "socketConnected"
>>  write "hello, server" & cr to socket "localhost:6800"
>> end mouseUp
>>
>> on socketConnected
>> put "connected to server!"
>> end socketConnected
>>
>> Regards,
>> ZEESHAN
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
Hay,
Mark Schonewille, Mark Wieder and all,

Is there is any way that i use JADE (NetBeans) Directly which places in any
other folder and call from their.
or i must use in same folder. how to with JADE not JAVA.

is their is any refernce example places on any source.

(JADE communication with Rev Studio )

regards,
zeeshan

On Sat, Mar 20, 2010 at 1:33 AM, Mark Wieder  wrote:

> Mark-
>
> Friday, March 19, 2010, 5:10:47 PM, you wrote:
>
> > I already told him exactly the same off-list, because he asked me
> > about it directly. Zeeshan, please reply my e-mail.
>
> OK - I'm done here.
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
Thanks Mark Schonewille and Mark Wieder,

I try Mark Wieder code in Server button code but its not work.

on mouseUp
   open socket "localhost:6800" with message "socketConnected"
   write "hello, server" & cr to socket "localhost:6800"
end mouseUp

on socketConnected
 put "connected to server!"
end socketConnected

Regards,
ZEESHAN

On Sat, Mar 20, 2010 at 1:10 AM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Hi,
>
> I already told him exactly the same off-list, because he asked me about it
> directly. Zeeshan, please reply my e-mail.
>
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
>
> Economy-x-Talk is always looking for new software development projects.
> Feel free to contact me for a quote.
>
> Op 20 mrt 2010, om 01:05 heeft Mark Wieder het volgende geschreven:
>
>
>  zeeshan-
>>
>> Friday, March 19, 2010, 4:32:31 PM, you wrote:
>>
>>  how?
>>>
>>
>> You've already got the server code in JADE...
>>
>> assuming both are on the same computer and you're still using port
>> 6800 on the server, in a runrev button put the script:
>>
>> on mouseUp
>>   open socket "localhost:6800" with message "socketConnected"
>>   write "hello, server" & cr to socket "localhost:6800"
>> end mouseUp
>>
>> on socketConnected
>>  put "connected to server!"
>> end socketConnected
>>
>> If they're on different machines then change "localhost" to
>> "192.168.0.101" or whatever the ip address of the server is.
>>
>> --
>> -Mark Wieder
>> mwie...@ahsoftware.net
>>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Possible virus warning

2010-03-19 Thread zeeshan aamir
thanks sara

On Sat, Mar 20, 2010 at 12:37 AM, Sarah Reichelt
wrote:

> On Sat, Mar 20, 2010 at 8:05 AM, zeeshan aamir 
> wrote:
> > Hay to all,
> >
> > This is not Virus, any way if you think that this is Virus then its your
> > choice dont open.
> > But any how this is not Virus.
> > I am beginner or Rev  and want cummunicate REV and JADE through Socket
> > Programming so thats why i send the image which shows the detail how they
> > cummincate each other.
>
>
> The issue here is that attachments are not permitted on the list. So
> it appears that you picked a bunch of email addresses from the list
> and BCC'd your queries to them personally - myself included.
> While I have no problem with your screen shots, there is no way that I
> am ever going to open a file called test.tar unless I have been
> expecting it.
> I also don't mind getting off-list queries, but not anonymously and
> not with unsolicited attachments.
>
> A better way of dealing with such issues is to post your scripts
> directly to the list while putting screen shots online and providing a
> link to them in the email.
>
> On to your actual question: if you look in the Revolution Resource
> Center, in the Sample Projects section you will see one called
> Internet Chat that demonstrates the use of sockets. I know nothing
> about JADE but maybe this will help you.
>
> Cheers,
> Sarah
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
how?

can you guide me in brief, please.

Regards,
shani


On Sat, Mar 20, 2010 at 12:08 AM, Mark Wieder wrote:

> zeeshan-
>
> Friday, March 19, 2010, 3:54:59 PM, you wrote:
>
> Why are you trying to launch the server app from runrev? Why not just
> use JADE to launch the server, then have the rev app communicate with
> it?
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
Hi Mark,
Thanks,

I test with this changes in command ( put shell("Server 6800") into tResult)

 this command will work but it gives this error.

java.lang.NoClassDefFoundError: Server (wrong name: Server/Server)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Server.  Program will exit.Exception in
thread "main"



Is it problem that this code is in JADE(Netbeans) and not work in simple
Java.
//Code for Server.java  (JADE)
package Server;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
public static void main (String[] args) throws IOException{
ServerSocket server=new ServerSocket(6800);
System.out.println("Server Started");
Socket client= server.accept();
DataInputStream in= new DataInputStream(client.getInputStream());

System.out.println("Client Syas: " + in.readUTF());
}
}

.
/7code for client Socket. (JADE)


package Cleint;

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

public class Cleint {
public static void main (String[] args) throws IOException {
Socket client= new Socket("localhost",6800);
System.out.println("Connected to server");
DataOutputStream out = new DataOutputStream(client.getOutputStream());
out.writeUTF ("AllowServer");


}

}
.


Regards,
Shani


On Fri, Mar 19, 2010 at 11:37 PM, Mark Wieder wrote:

> zeeshan-
>
> Friday, March 19, 2010, 3:01:26 PM, you wrote:
>
> >put shell("Server 6800") into tResult
>
> Unless you've somehow compiled "Server" as an executable binary file,
> you'll need to launch it as
>
> put shell("java Server") into tResult
>
> otherwise you'll end up with something in tResult like "'Server' is
> not recognized as an internal or external command, operable program or
> batch file."
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Possible virus warning

2010-03-19 Thread zeeshan aamir
Hay to all,

This is not Virus, any way if you think that this is Virus then its your
choice dont open.
But any how this is not Virus.
I am beginner or Rev  and want cummunicate REV and JADE through Socket
Programming so thats why i send the image which shows the detail how they
cummincate each other.

Regards,
Aamir

On Fri, Mar 19, 2010 at 10:37 PM, BNig  wrote:

>
>
> Richmond Mathewson-2 wrote:
> >
> >   On 19/03/2010 23:04, BNig wrote:
> >> Actually I was entering
> >> http://www.nabble.com/Revolution---User-f2297.html
> >> and it was automatically changed to
> >> http://www.nabble.com/-td2294.html#a2297
> >> something fishy is going on
> >> regards
> >> Bernd
> >
> > Russian mafia?
> >
> > Something about technology and Ingushetia . . . ?
>
> maybe they like the name of our favorite xTalk tool ;-)
> regards
> Bernd
> --
> View this message in context:
> http://n4.nabble.com/Possible-virus-warning-tp1598918p1616810.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


JADE (NetBeans IDE 6.8) and Rev Studio 4.0

2010-03-19 Thread zeeshan aamir
Hay to all,



I want to communicate the JADE (NetBeans IDE 6.8 (Build 200912041610)

) and RunRev (Rev Studio Build 950 Version 4.0.0) with each other through
Socket Programming.



*Product Version:* NetBeans IDE 6.8 (Build 200912041610)

*Java:* 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13

*System:* Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)



*Rev Studio* Build 950 Version 4.0.0





RunRev and JADE are installed on same computer.



Kindly Guide me some links where I find the examples how they both
communicate with each other.



I am beginner at this time of RunRev.





I have simple program in JADE

……



//Code for Server.java  (JADE)
package Server;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
public static void main (String[] args) throws IOException{
ServerSocket server=new ServerSocket(6800);
System.out.println("Server Started");
Socket client= server.accept();
DataInputStream in= new DataInputStream(client.getInputStream());

System.out.println("Client Syas: " + in.readUTF());
}
}

.
/7code for client Socket. (JADE)


package Cleint;

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

public class Cleint {
public static void main (String[] args) throws IOException {
Socket client= new Socket("localhost",6800);
System.out.println("Connected to server");
DataOutputStream out = new DataOutputStream(client.getOutputStream());
out.writeUTF ("AllowServer");


}

}
.

*RunRev* Main

function StackPath
   local tPath
   --
   put the effective filename of this stack into tPath
   set the itemDelimiter to slash
   delete item -1 of tPath
   --
   return tPath
end StackPath

*For Server  Communication Button in Rev*


on mouseUp
   local tDefaultFolder, tResult
   --
   put the defaultFolder into tDefaultFolder
   set the defaultFolder to StackPath()
   --
   put shell("Server 6800") into tResult
   --
   set the defaultFolder to tDefaultFolder
   answer tResult
end mouseUp

*
Clinet button coading in Rev
*



on mouseUp
local tDefaultFolder, tProcess
   --
   put the defaultFolder into tDefaultFolder
   set the defaultFolder to StackPath()
   --
   put "Client" into tProcess
   open process tProcess for neither
   --
   set the defaultFolder to tDefaultFolder
end mouseUp



..



I am very thankful to you for this kindness in advice.



Kindly reply me on your earliest.


Regards,

shani
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Communication between JADE and Runrev

2010-03-16 Thread zeeshan aamir
Hi,
i need examples of Communication between JADE and Runrev through sockets.

Kindly send me complete procedure how to communicate between them.

Is there is any video tutorial available for this. on youtube or any other?

One Stck is in stack RunRev  (*vending*
machineis
placed on 5 different position, their or many custommer who come
through
street and buy newspaper)
Other coading of each agents in JADE   (All programming how machine behave
etc)

how to communicate?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution