Hello,
I am looking for documentation that specifies the following behavior
exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not
expanding shell wildcards. Basically, the args[] passed to main()
contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...argate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for
java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified.
I have run searches on java.sun.com and used their documentation
searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards,
Bharath. 6 9663
Your statement: "inspite of Windows not expanding shell wildcards" is
not true. Windows does expand the wildcard, just like bash or csh (unix)
does.
If you want to see what is actually being passed in, echo it:
echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote: Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...argate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
Not under XP Pro.
echo *
prints "*"
Wild card expansion has never been a function of batch but is done by
whatever is run under batch, see the "for" command in batch for this.
Constantine
mhandis wrote: Your statement: "inspite of Windows not expanding shell wildcards" is not true. Windows does expand the wildcard, just like bash or csh (unix) does.
If you want to see what is actually being passed in, echo it: echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote:
Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...argate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
Not under XP Pro.
echo *
prints "*"
Wild card expansion has never been a function of batch but is done by
whatever is run under batch, see the "for" command in batch for this.
Constantine
mhandis wrote: Your statement: "inspite of Windows not expanding shell wildcards" is not true. Windows does expand the wildcard, just like bash or csh (unix) does.
If you want to see what is actually being passed in, echo it: echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote:
Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...argate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
yes, there is no expansion under XP pro (just tried it too)
I don't have access to win 95 now, but years ago with turbo c++
there was no expansion either and Borland provided an
object file that you could link in to do the expansion prior
to invoking the program
"CD Rasmussen" <Co*******************@comcast.net> wrote in message
news:At********************@comcast.com... Not under XP Pro. echo * prints "*" Wild card expansion has never been a function of batch but is done by whatever is run under batch, see the "for" command in batch for this.
Constantine
mhandis wrote: Your statement: "inspite of Windows not expanding shell wildcards" is not true. Windows does expand the wildcard, just like bash or csh (unix) does.
If you want to see what is actually being passed in, echo it: echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote:
Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...ame=right&th=3
3f09e2bd3e85a8e&seekm=01be589d%24dc827700%24baac72 d1%40stargate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
yes, there is no expansion under XP pro (just tried it too)
I don't have access to win 95 now, but years ago with turbo c++
there was no expansion either and Borland provided an
object file that you could link in to do the expansion prior
to invoking the program
"CD Rasmussen" <Co*******************@comcast.net> wrote in message
news:At********************@comcast.com... Not under XP Pro. echo * prints "*" Wild card expansion has never been a function of batch but is done by whatever is run under batch, see the "for" command in batch for this.
Constantine
mhandis wrote: Your statement: "inspite of Windows not expanding shell wildcards" is not true. Windows does expand the wildcard, just like bash or csh (unix) does.
If you want to see what is actually being passed in, echo it: echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote:
Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...ame=right&th=3
3f09e2bd3e85a8e&seekm=01be589d%24dc827700%24baac72 d1%40stargate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
You are right, it doesn't work under windows with echo, only under
unix/linux.
The following C program demonstrates that Windows does expand *:
#include<stdio.h>
int main(int argc, char **argv) {
int i;
for(i = 0; i < argc; i++) {
printf("arg %d = %s\n", i+1, argv[i]);
}
return 0;
}
As does the following Java program:
public class Test {
public static void main(String[] args) {
for(int i = 0; i < args.length; i++) {
System.out.println("arg " + (i+1) + " = " + args[i]);
}
}
}
CD Rasmussen wrote: Not under XP Pro. echo * prints "*" Wild card expansion has never been a function of batch but is done by whatever is run under batch, see the "for" command in batch for this.
Constantine
mhandis wrote:
Your statement: "inspite of Windows not expanding shell wildcards" is not true. Windows does expand the wildcard, just like bash or csh (unix) does.
If you want to see what is actually being passed in, echo it: echo java MyClass *
Echo works on both Windows and unix as well.
So this has nothing to do with Java at all.
Bharath Dhurjati wrote:
Hello,
I am looking for documentation that specifies the following behavior exhibited by java.
The following (assuming MyClass.class is accessible and has a main())
java MyClass *
yields the same result on Windows as on Unix, inspite of Windows not expanding shell wildcards. Basically, the args[] passed to main() contains names of files in that directory.
The basic behavior is documented in the following link: http://groups.google.com/groups?hl=e...argate.sgi.net
The last post by Kevin Kelley points this as 'specified' behavior for java.exe.
The following link also points this as specified behavior. http://www.cse.fau.edu/~roy/cop4331/asgmt1.html#jdk1.2
Now I am trying to find out exactly WHERE is this specified. I have run searches on java.sun.com and used their documentation searcher also, but couldn't find any documentation.
Can some one please help?
Thanks.
Regards, Bharath.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PC |
last post by:
It's obvious, that Windows XP has a Java 2 VM (including the SWING-module),
because we can all run Java 2 applets in Internet Explorer. But what about
the support for Java 2 Applications?
I...
|
by: QQ June |
last post by:
Hello,
I have some java classes. But, I don't want my users to type "java
my_java_program" every time they run the java class ?
How do I pack them together into one executable file, like...
|
by: Ayesha Ahsan |
last post by:
Hi,
I use Runtime.getRuntime().exec(command) to make my system call.
For Windows based Dos, i add "cmd /c" before I type in my system
call. So for example make the system call "dir":
String...
|
by: Steve M |
last post by:
I'm trying to invoke a Java command-line program from my Python program
on Windows XP. I cannot get the paths in one of the arguments to work
right.
The instructions for the program describe the...
|
by: David |
last post by:
Hi,
I am writing a C# program and want to run a java application and pass it a
filename as a parameter. I want to be able to write a method in C# that
will run this Java app for me. Eg. I want...
|
by: Andrea |
last post by:
Hi evrybody !
Does anybody know how to call a java class from a COM component ?
Any suggestion ?
Thanks
Andrea
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej...
|
by: r035198x |
last post by:
Setting up.
Getting started
To get started with java, one must download and install a version of Sun's JDK (Java Development Kit).
The newest release at the time of writting this article is...
|
by: Jwe |
last post by:
Hi,
I've written a program which has both a command line interface
and Windows form interface, however it isn't quite working
correctly.
When run from command line with no arguments it should...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |