Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JDK 1.5 Live Code Examples

Reply
Thread Tools

JDK 1.5 Live Code Examples

 
 
Mike
Guest
Posts: n/a
 
      01-31-2004
You can play with live code examples for JDK 1.5 alpha:
http://zamples.com/JspExplorer/sampl...lesJDK1_5.html

You can see other live APIs at:
http://zamples.com/JspExplorer/samples/index.jsp

Mike
 
Reply With Quote
 
 
 
 
George W. Cherry
Guest
Posts: n/a
 
      02-02-2004

"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> You can play with live code examples for JDK 1.5 alpha:
> http://zamples.com/JspExplorer/sampl...lesJDK1_5.html
>
> You can see other live APIs at:
> http://zamples.com/JspExplorer/samples/index.jsp
>
> Mike


Nice stuff. Thanks. Looking forward to it.


 
Reply With Quote
 
 
 
 
marcello
Guest
Posts: n/a
 
      02-05-2004
Hi my name is marcello,

I have this problem,
my application call a Runtime.exec() where the command is:

On Linux

"rm -f -r /usr/local/wa/etichette/etichetta0"

On Windows

"del c:\\Programmi\\wa\\etichette\\etichetta0"

On linux is ok but in windows catch an exception
"can'Create a process"

Thank you for your help
 
Reply With Quote
 
Steve W. Jackson
Guest
Posts: n/a
 
      02-05-2004
In article <(E-Mail Removed)>,
marcello <(E-Mail Removed)> wrote:

>:Hi my name is marcello,
>:
>:I have this problem,
>:my application call a Runtime.exec() where the command is:
>:
>:On Linux
>:
>:"rm -f -r /usr/local/wa/etichette/etichetta0"
>:
>:On Windows
>:
>:"del c:\\Programmi\\wa\\etichette\\etichetta0"
>:
>:On linux is ok but in windows catch an exception
>:"can'Create a process"
>:
>:Thank you for your help


Interestingly enough, those two commands don't necessarily do the same
thing, even if your Windows version worked.

To fix that, you probably need to put "cmd /c" in front of the "del"
command since you want the command shell to execute the del command.

But the del command deletes a file. If that's a directory, it will
error. The Linux command rm when used with the -r switch will
recursively remove a directory and its contents. The -f switch
suppresses any errors or warnings (and could be combined to "rm -rf").

If in fact the item you're attempting to delete is a file and not a
directory, why not simply do it internally in Java? Create a
java.io.File object representing it and call its delete() method.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDK 1.5 or JDK 1.6 Pep Java 19 07-15-2007 12:06 AM
regarding JDk 141 and JDK 122 for linux 64 bit Platform Jaggu Java 3 01-08-2007 10:47 AM
What is the difference between J2EE, JDK, JDK-SDK, JRE and J2SE packages ? Ulf Meinhardt Java 0 08-10-2006 07:12 PM
jEdit: compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?) Thomas G. Marshall Java 5 08-06-2004 04:12 AM
Help with converting IDS from JDK 1.1 to JDK 1.4 Babar Java 1 05-20-2004 09:11 PM



Advertisments