Closing JFrame from within frame without closing program
Is there any way to close a JFrame from within frame without closing the program. I don't want to just frame.setVisible(false);
http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=closing+JFrame+from+within+frame+without+closing+program+&x=5&y=11
Happy New Year!
Similar Messages
-
Printing a webpage from within Flash without opeining it
Is it possible to print from within a Flash movie ,a webpage
from another site, without actually opening that site.
Example: I make a print button within Flash, I click it and
it prints www.yahoo.com, but it actually never opens www.yahoo.com,
I will never see www.yahoo.com on the screen.
Is this possible?
Thanks
Dsame as above
-
Changing text within frames without adding space at bottom
Anyone know if there's a method for changing text within frames so that the successive text automatically flows into position without creating blank space at bottom of that current or a subsequent frame?
Peter,
You can combine the discussions if you want. I actually deleted a sentence beginning the second discussion explaining that it was related to the first. I thought it might impede the discussion.
Let me describe my problem more completely. I'm adjusting a book that was carefully crafted using frames for each page so that the text extended to the bottom of each page (frame). This often splits text within a paragraph between two pages. This was done so that the customer doesn't feel they are purchasing any blank space and for the aesthetic purpose of filling each page with text. The only exception is the beginning of new chapters or sections.
The problem is that I want to change a word here and there in preexisting paragraphs. When I do, space often one-third the page length is generated at the bottom of a page (frame). To fill that space and extend text to the bottom of the page again requires -given my current understanding of options- selecting the paragraph (beginning on one page and completed on the second) that has become interrupted by the blank space and performing a "keep lines together" option. Unfortunately, this usually generates new blank space on a subsequent page, requiring a new "keep lines together"; in a seemingly unending regress of this procedure.
What I require is a method enabling me to add text within a paragraph that will avoid the generation of the blank space by flowing the subsequent text (composing one or more paragraphs and splitting a paragraph between pages if required) to the end of the page; completely filling the page without requiring any use of "keep options" or whatever.
Richard -
Exit from a Frame without resorting to System.exit()
This is driving me nuts.
I've got a really simple problem, actually... I've got a Frame and I'm trying to get rid of it so my application will exit.
Though using System.exit() seems to be the most common way to get an application to exit, I'd prefer to avoid going that route. My program uses multiple threads, and I want to give them all a chance to exit gracefully before the application exits, as opposed to terminating them all quite suddenly. All the threads monitor a boolean value, "exiting", and terminate, after some cleanup, when the variable is set. Using join() on all the threads before using System.exit() would work, except any number of threads may be created by the program, and not all of them will be accessible by the function doing the exiting!
If I simply omit the call to System.exit(), and remove the Frame with dispose(), the threads all shut down properly, and the program appears to have exited, except the command prompt doesn't reappear until I hit Ctrl-C.
So I looked up the docs for the dispose() method. It was slightly different than I remembered... Obviously, that method is not the way to shut down a Frame. What is?So I looked up the docs for the dispose() method. It
was slightly different than I remembered...
Obviously, that method is not the way to shut down a
Frame. What is?The problem is that once you use some GUI, a pool of AWT threads is created and they are not shut down, not even if there is no more GUI visible.
Look at these other threads for some explanation on this behaviour an workarounds:
http://forum.java.sun.com/thread.jspa?forumID=5&threadID=10901
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=122569 -
Unable to telnet to port 25 from within or without the network.
Hi there, I have been wrestling with firewall and mail settings in Server Admin to enable mail services for a client and could use some assistance as I am new to mail administration on OS X.
I am trying to isolate whether or not I am being blocked by the firewall or by erroneous setup in Mail Settings.
The firewall service on the network "any" has a check for Mail: SMPT for both TCP and UPD on the "Services" tab.
At this point I am just working with SMTP for outbound mail only. I have a suspicion that I am not setting the parameters for local internet domain name, and internet host name correctly; or that the settings I have are correct, but not valid.
The hostname of the server is ##-###-##-###.atgi.net, where ## correspond with the numbers in each octet of the IP address. The MX record is pointing to smtp.CLIENT'SDOMAN.com. (where CLIENTS'SDOMAIN is the actual domain for this company) (Registrar is Network Solutions, I do not have DNS enabled on this server)
SMTP settings are as follows:
Enable SMTP is checked
Allow Incoming mail is not checked
domain name is: ##-###-##-###.atgi.net
Host Name is: smtp.CLIENT'SDOMAIN.com
Everything else in mail settings not active.
Here are the SMTP log entires when I sart mail service:
Oct 9 00:02:32 66-182-60-162 postfix/postfix-script: stopping the
Postfix mail system
Oct 9 00:02:32 66-182-60-162 postfix/master[13377]: terminating on signal 15
Oct 9 00:02:32 66-182-60-162 postfix/master[14147]: daemon started --
version 2.1.5
Questions:
1. Shouldn't I be able to see smptd running at this point?
2. Telnet to port 25 on the server itself and outside the network is rejected, wth?
3. Should I change the local internet domain ##-###-##-### to be the client's actual domain name?
Any help that anyone could provide would be greatly appreciated. If I can provide more supporting documentation, please just let me know what would be useful. I am quite new to OS X / Darwin, more comfortable with linux.
Thanks in advance$ sudo postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = localhost
localrecipientmaps = proxy:unix:passwd.byname $alias_maps
luser_relay =
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
messagesizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain
mydomain = xpressprintnow.com
mydomain_fallback = localhost
myhostname = smtp.xpressprintnow.com
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdclientrestrictions = hash:/etc/postfix/smtpdreject
smtpdenforcetls = no
smtpdpw_server_securityoptions = plain
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_certfile = /etc/certificates/Default.crt
smtpdtls_keyfile = /etc/certificates/Default.key
smtpduse_pwserver = yes
smtpdusetls = no
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains =
virtual_transport = virtual -
Retrieving Jar path in the HD from within the jar?
I have a small problem. I wrote a program which is packed in a jar file and this program is able to compile and run java files (Which I do by running javac and java processes) but the kind of files that this program compiles requires some other libraries inside the same package (In the jar file) so I am wondering how can I retrieve the jar path in the harddisk from within this jar because at the moment I ask the user where the program is and I think it is kind of ugly to ask the user where the program is from within the exact same program we are looking for.
Hope I made myself understandable.
Best Regards
NooKThanks for the answer. I mistakenlly ended writing a new thread (New to the forum)
but if you would kindly look here, I have other problem now which I have been working on for a whole day.
http://forum.java.sun.com/thread.jsp?thread=524717&forum=31&message=2514471
Best Regards
NooK -
Closing MacBook without closing programs?
Well this has been a quesion that is bugging me. Say I am on iChat and I am talking away and then my younger family comes along and they great me. I don't want them to see what I am doing on the computer, so I close it. But when I closed it I got signed off. Now some progrmas don't get affected, like Safari. But I recall that iTunes also completely quit.
Is there a way that you can completely close the MacBook without any programs quitting? Like I have Sleep disable because I keep it on at night once in a while in case someone talks to me, like a family member far away that I have been meaning to talk to. So sleep is disabled, or something like that because I turn the screen brigtness to 0 and then after like 5 minutes the little white light shows. And, that never causes me any closings or things.
So is there any possible way that I could close my MacBook without any programs quitting?No. When the computer is put to sleep all processes are suspended. If you use a wireless connection for the internet the Airport is also suspended during sleep. It will reconnect when the computer wakes up.
In order for the computer to continue working with the lid closed you need to connect an external monitor, keyboard, and mouse.
There are one or two third-party utilities that are supposed to keep the computer awake with the lid closed. You'll find them at VersionTracker or MacUpdate. I've never used them so I have no idea if they work.
Why reward points?(Quoted from Discussions Terms of Use.)
The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values. -
MacBook Pro is operating more and more slowly in opening and closing, opening and closing programs and accessing and closing from mobile broadband. Is there a solution to this problem?
Did you try rebooting?
-
When open iTunes it starts OK then a message from Windows appears, 'DATA EXECUTION PREVENTION Windows closed program'. Then the whole thing shuts down. Does anybody know how to sort this out please. I am using XP operating system and have recently updated iTunes. Thanks
Hi alanfromharlow,
It sounds as if iTunes is failing to launch properly on your Windows computer. You don’t mention what version of Windows you have, but one of these two articles should be useful to you -
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/TS1717
iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
http://support.apple.com/kb/TS1421
Thanks for using Apple Support Communities.
Best,
Brett L -
In my MDB file databases (Jet 4.x format) I turn on both compression and encryption. This gives me data security from without, meaning, I can't open a MDB file in a Word Processing software (or otherwise) and read the data in a humanly recognized
format. But I am also using MIMEbase64 encoding of my stored data so that the data is humanly unreadable from within - meaning that anyone performing an SQL query will not be able to humanly read the data in my database. I do the decoding
(from MIMEbase64) within my end-user software interfaces to the databases.
I found out just recently (last few months) that I can do this from Win32 Perl, so I encorporated this feature into my Perl database applications. Only thing is that MIMEbase64 increases the size of the data stored.
Is there a better encoding strategy available today which might actually compress the data a little?INSTRUCTIONS FOR SECURE/CUSTOM (non-formula based) TEXTFILE ENCODING (should be undecipherable w/o mappings file):
by Eric C. Hansen. You may freely use these encoding instructions, and the code I have provided, but please
acknowledge me as the author where credit is due - such as in a publication. And do not try to sell it.
However, any code I have provided you may freely use in any programs you write to be sold for your own profit,
except you may not attempt to sell this encoding scheme (or my code provided), as a generic encoding tool, for
general use, to be marketed as a turn-key custom encoding solution.
(1) Create a unique code list
Using the characters: A-Z a-z 0-9 only. That's 62 characters only.
62 (1 char codes) + 3844 (2 char codes) + 238,328 (3 char codes) = 242,234 total codes
62x1 + 62x62 + 62x62x62
REMINDS ME of my college Genetics course i.e. dominant/recessive trait inheritance tables
EXAMPLE CODES: a, k, 3c, A4, xy1, H8j
(2) Create a unique word(+punc) list from your textfile which is to be encoded. You know how to do this.
Example of 9 words(+punc) found between whitespace within a textfile input line:
"Hello", this is Mr. Bell-va-deer. My number is 999-342-8998.
1 2 3 4 5 6 7 8 9
PERL code for STEPS 3-7 is provided below. Code for STEP 1 above was previously provided.
You should have little trouble writing the textfile encode/decode logic yourself.
(3) Read your list of unique codes into an array.
(4) Read your list of unique words(+punc) into another array.
LOOP #-- 0 to number of elements in words array
(5) select a random code and a random word(+punc) from the 2 arrays.
(6) now remove that code and that word(+punc) from each array using "splice".
(7) then save them as key/val pairs to persistent Perl SDBM database files ("mappings").
END LOOP
(8) Once you have your persistent, random code/word mappings, you can convert your textfile
to an encoded textfile. Read in one line at a time from your textfile (chomp), parse the words(+punc.)
between whitespace within that line, then for each word(+punc) parsed, perform
the word-to-code mapping conversions by doing a lookup within the Perl SDBM database
file of key/val pairs, where KEY=word and VAL=code. You will then need to
concatenate these codes (space delimited) to your outputline, in the same order as found in your
inputline, finally writing the outputline (newline "\n" terminated) to your new encoded textfile.
(9) Keep your persistent Perl SDBM database file ("mappings") in SAFE KEEPING, with a naming
convention of your choice that perhaps hides any relationship to the name of
your encoded text document - which it specifically pertains to. But keep a record of that joint
relationship somewhere. Keep a copy of both the original textfile and the encoded textfile,
or perhaps you'd like to keep just the encoded textfile?, and not the original? You can always decode it.
(10) Send your encoded text document via email as an attachment, to the recipient of your choice.
(11) Upload your persistent Perl SDBM database "mappings" file to your secure login FTP download site.
NOTE: If your encoded text document is very large, you may want to reverse 10 & 11, putting the encoded file
on the FTP site, and sending the Perl SDBM database file ("mappings") as the email attachment.
(12) Call your recipient to see if they have received the encoded textfile, email attachment.
Let them know that the "mappings" file is uploaded for them to download from the FTP site.
You can have a LINGO you both use/know on the phone, to secretly convey this message, if you like,
to avoid possible interception of this sensitive information.
Recipient will then take the encoded textfile email attachment, the FTP downloaded "mappings" file,
and place them both in a directory on their PC where the Perl decoding program is located which you
had previously sent them to handle all the decoding anytime you send them an encoded textfile + "mappings".
Recipient will run the Perl decoding utility program to create the original textfile.
use Win32; #-- as you can see, I use a Windows O/S Perl distribution.
use IO::Handle;
use SDBM_File; #-- my understanding is this module comes standard with every Perl distribution
use Fcntl;
$PWD=Win32::GetCwd(); #-- get current working directory on Windows O/S platform.
srand; #-- random seeding initiated, do this just once at top.
@codesARR=(); @wordsARR=(); #-- initialize the arrays
print "working. please wait...\n\n";
unlink( "$PWD\\Project_0836_Mappings_CtoW.pag" )
if (-e "$PWD\\Project_0836_Mappings_CtoW.pag" );
unlink( "$PWD\\Project_0836_Mappings_CtoW.dir" )
if (-e "$PWD\\Project_0836_Mappings_CtoW.dir" );
unlink( "$PWD\\Project_0836_Mappings_WtoC.pag" )
if (-e "$PWD\\Project_0836_Mappings_WtoC.pag" );
unlink( "$PWD\\Project_0836_Mappings_WtoC.dir" )
if (-e "$PWD\\Project_0836_Mappings_WtoC.dir" );
unlink( "$PWD\\Project_0836_Mappings.txt" )
if (-e "$PWD\\Project_0836_Mappings.txt" );
$cnt1=0; $ret="Y";
open(CODES,"$PWD\\codes.txt") || do {$ret="N";};
if ($ret eq "N") {
print "Codes input file not opened \n";
sleep 5; die;
while (<CODES>) {
chomp $_;
$codesARR[$cnt1]=$_;
$cnt1++;
print $cnt1 . " codes loaded\n\n";
close(CODES);
$cnt2=0; $ret="Y";
open(WORDS,"$PWD\\words.txt") || do {$ret="N";};
if ($ret eq "N") {
print "Words input file not opened \n";
sleep 5; die;
while (<WORDS>) {
chomp $_;
$wordsARR[$cnt2]=$_;
$cnt2++;
print $cnt2 . " words loaded\n\n";
close(WORDS);
sleep 3; #-- a little time to check on record counts loaded to both arrays
tie( %Project_0836_Mappings_WtoC, "SDBM_File", '.\Project_0836_Mappings_WtoC', O_RDWR|O_CREAT, 0666 );
if (tied %Project_0836_Mappings_WtoC) {
print "WtoC Hash/SDBM File are now tied\n\n";
} else {
print "Could not tie WtoC Hash/SDBM File\n\n"; sleep 5; die;
tie( %Project_0836_Mappings_CtoW, "SDBM_File", '.\Project_0836_Mappings_CtoW', O_RDWR|O_CREAT, 0666 );
if (tied %Project_0836_Mappings_CtoW) {
print "CtoW Hash/SDBM File are now tied\n\n";
} else {
untie(%Project_0836_Mappings_WtoC); #-- close the successful tie made directly above
print "Could not tie CtoW Hash/SDBM File\n\n"; sleep 5; die;
open (OUT,"> $PWD\\Project_0836_Mappings.txt");
OUT->autoflush(1);
$cnt2=$#wordsARR; #-- we do this because we will be removing elements from wordsARR
for ($i=0; $i<=$cnt2; $i++) {
$index = rand @codesARR; # get a random index from the codes array
$code = $codesARR[$index]; # get the value of that array element
splice(@codesARR,$index,1); # removes only this element from the codes array.
$index = rand @wordsARR; # get a random index from the words array
$word = $wordsARR[$index]; # get the value of that array element
splice(@wordsARR,$index,1); # removes only this element from the words array.
$Project_0836_Mappings_WtoC{$word}=$code; # key/value pair where: word is key, code is value
$Project_0836_Mappings_CtoW{$code}=$word; # key/value pair where: code is key, word is value
print "Your Mappings have been created and saved to (.dir and .pag extension files)\n\n";
print OUT "Here are your Mappings you just created:\n\n";
foreach $key (keys %Project_0836_Mappings_WtoC) {
print OUT "word=" . $key . " code=" . $Project_0836_Mappings_WtoC{$key} . "\n";
print OUT "##################################################\n";
foreach $key (keys %Project_0836_Mappings_CtoW) {
print OUT "code=" . $key . " word=" . $Project_0836_Mappings_CtoW{$key} . "\n";
untie(%Project_0836_Mappings_WtoC); #-- now you have saved a persistent word/code mappings file
untie(%Project_0836_Mappings_CtoW); #-- now you have saved a persistent code/word mappings file
close(OUT);
print "Done. Goodbye!\n";
sleep 5;
exit; -
How can I execute an external program from within a button's event handler?
I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
So, then, how can I do this?
Thanks
Ted
NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
try {
java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
//pn.directory(new java.io.File("K:\\work"));
java.lang.Process pr = pn.start();
java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
String tmp = new String("");
byte b[] = new byte[1000];
int i = 0;
while (i != -1) {
bis.read(b);
tmp += new String(b);
getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
} catch (java.io.IOException ex) {
getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
}Hi Fonsi!
One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
/Thomas -
How to call Operating System commands / external programs from within APEX
Hi,
Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
Any pointers will be greatly appreciated.
Thanks & Regards,Hi Guys,
I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
sqlplusw.exe user/password@database @script1.sql
sqlplusw.exe user/password@database @script2.sql
sqlplusw.exe user/password@database @script3.sql
sqlplusw.exe user/password@database @script4.sql
What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
Any help will be greatly appreciated.
Thanks & Regards, -
Controlling printer formatting from within program
Hi Experts,
I have a requirement in which the user wants to that the printer's default setting of format 'X_65_1024' should be changed to 'X_65_255' in case of if he executes this perticular report.
The output of the report is ALV list display.
Is it possible to control printer's setting from within the program?
I serached and found two FMs.
'SET_PRINT_PARAMETERS' and 'GET_PRINT_PARAMETERS' .
But I am unable to understand how to use these FMs.
Is there any other way to achieve this?
Any pointers to resolve this issue would be very helpful.Hi,
look here:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm
All Print Parameters are described.
And a little code example:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = lv_pdest
copies = lv_count
list_name = lv_lnam
list_text = lv_prtxt
immediately = lv_flg_prn
release = ' '
new_list_id = 'X'
expiration = lv_days
line_size = 255
line_count = 65
layout = 'X_65_255'
sap_cover_page = ' '
cover_page = ' '
receiver = lv_prrec
department = lv_prabt
no_dialog = 'X'
IMPORTING
out_parameters = ls_params
valid = lv_valid.
IF lv_valid <> space.
NEW-PAGE PRINT ON
PARAMETERS ls_params NEW-SECTION NO DIALOG.
ENDIF.
Hope it helps.
Regards,
David -
Cannot open iwork documents from within the iwork program
I am running OSX Mountain Lion on an imac 3.06 GHz core duo. Everything is uptodate. I have documents from Numbers, Pages and Keynote stored on icloud. I can see them when I go to icloud.com. When I try to open them from within any of the iwork programs, all I can see is greyed out document icons.
Hello
It seems that Pages is coded to save an imported file (which is the case for a .doc one) in the folder from which it was imported.
When the folder belongs to a CD, this can't be done and Pages refuses to import the doc.
I's not a bug, it's a feature.
Delberate or not is an other question.
If this feature is annoying from your point of you, described the problem to the official channel because here we are users trying to help other users.
We are not members of the Pages team.
So, *go to "Provide Numbers Feedback" in the "Pages" menu* and describe what you wish.
Yvan KOENIG (from FRANCE samedi 24 novembre 2007 18:53:10) -
Start a WS application from within a java program
Hi,
I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
try {
Runtime.getRuntime().exec(
"c:\\java web start\\javaws.exe http://a.b/c.jnlp"
} catch (Exception e) {
e.printStackTrace();
And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
I tried to do it from a command line with the followinf command:
java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
Can anybody help me? How may I start a .jnlp program within another java program.
Kind Regards,
Tobias NeubertHi,
I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
But it seems strange that it does work from the command line and not from your code.
-Stefan
Maybe you are looking for
-
Safari and Firefox both not loading any pages yet i am connected to the int
Safari and Firefox both not loading any pages yet when i run diagnostics it says i am connected to the internet... any ideas???
-
(Windows 8.1) Problem with playback device
Im using a usb mic and made sure that it works, annd skype is using the right mic. any help is appreciated. Thanks!
-
How do I create a watermark in photoshop CS5
Hello all: I purchased the Photoshop software CS5 and I have bee atempting to learn how to make a watermark and place it on an image. I was working with a tutorial but came to a "roadblock" and have been unable to proceed. The following is the link:
-
Japanese or Chinese characters showing up in contextual menu (right click)
Whenever I right click inside a Firefox (v 3.6.17) window, there are three (3) menu picks at the very bottom of the contextual menu that are displayed in either Japanese or Chinese characters. How do I fix this? Thanks in advance for any help!
-
Hi everyone, I am having a problem when i am trying to upload image to MysqlUSING jsP USER INTERFACES. I am using mozilla as a browser on Mandrake Linux platform. I am calling a bean Images.java which when run in konsole mode its working fine and ima