jEdit Community - Resources for users of the jEdit Text Editor
what is initail value to jEdit.java ! where it is? ! how its pass !
Submitted by balase on Tuesday, 27 September, 2005 - 06:18
hi,

any one can explain how initial value pass to the jEdit.java (command line arguments) program and where you get that initial value? what is that file name?

thanks
Balamurugan SE
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
What?
by Vampire on Tue, 27/09/2005 - 22:31
Sorry, but I don't think I understand your question.
Command line arguments are supplied via the commandline. That's where they have their name from. If that was your question.
And what do you mean with initial value? If no filename is supplied as commandline argument, why should there be a default one? You don't have to start jEdit with a file to edit.
 
what value passed in command line?
by balase on Wed, 28/09/2005 - 04:16
My issue is, now i am changing the jEdit code to relevent applet code. The reason is "I want to dispaly (bring) jEdit in html page".
when i am converting into applet, I am facing the problem in main() metheod. Because in applet, we cann't call main() method implicitly like in ordinary class. so, i want to replace it. The correct replacement is start() method in applet. how i pass the command line argumnets to start()? The option is param tag in applet. So, i want to know what are the values passed through the command lines to main(String args[]) in jedit?. can you give your valuable suggestion to me?


Thanks & best Regards,
Balamurugan SE
 
getParameter()
by Vampire on Wed, 28/09/2005 - 11:42
I'm still not sure if I know what you mean. But it if I'm right, then I wonder why you don't read any documentation about Applets, instead of asking here. o_O
http://java.sun.com/docs/books/tutorial/applet/appletsonly/getParam.html
 
what are the values passed in the command line arguments?
by balase on Thu, 29/09/2005 - 03:44
fine.
what are the values passed in the command line arguments that i don't know. i want to know that values?
Thanks & best Regards,
Balamurugan SE
 
What do you mean?
by Vampire on Thu, 29/09/2005 - 11:07
Sry, but I still don't know what you mean.
 
what is the value in the string array "args" ?
by balase on Thu, 29/09/2005 - 15:03
Hi Vampire,

In jEdit.java,

............
...........
public static void main(String[] args)
{
............

for(int i = 0; i < args.length; i++)
{
................


in that code, i want to know

what is the value in string array "args" ?

what are the possible values for the string array "args"?

Thanks & best Regards,
Balamurugan SE
 
The parameters
by Vampire on Fri, 30/09/2005 - 15:44
In the String-Array are the commandline-options you supply. If you call jEdit like:
javaw -jar jedit.jar -nosettings -noplugins foo.bar
then args[0] is "-nosettings", args[1] is "-noplugins" and args[2] is "foo.bar".
If these are valid is decided by the program itself, so you should simply look at "javaw -jar jedit.jar -help" or better directly in the code where the commandline arguments are evaluated.
User login
Browse archives
« September 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299