Open a flash cs3 from java application
I want to open a flash cs3 through a button in my java application. The problem is, the program keeps on throwing the following error: "package jflashplayer does not exit". I found the package and saved it in the same package as my classes and it still doesnt work. Could anyone please tell how I could fix this error, I will very much appreciate it. Thanks in advance.
h2. {color: #ff0000}Double post{color}
Replies here:
http://forum.java.sun.com/hread.jspa?threadID=5254837&tstart=0
Similar Messages
-
Can i open a flase file from java application?
i want that when the user click a button on my java application,
a flash file i made (Not html)will be showen .is it an executable(*.exe?), if it is then you could try using runtime.exec() to run it, but it would not be in a window that you created
-
How to open an PDF file from Java Application
Hi
I am developing a GUI application in java swing.
on clicking one button, I want to open PDF file from my swing application.
Is there any API through which I can achieve this?
Tapan Maru
Sun Certified Java ProgrammerHere's a way to do it (if I understand you
correctly). Just let explorer.exe do it for you.
import java.awt.*;
public class openPDF
Desktop desktop = Desktop.getDesktop();
public openPDF()
open("test.pdf");
public void open(String path)
try
Runtime.getRuntime().exec("explorer.exe "+path);
} catch(Exception e) { System.out.println("NAI!
I! ERROR!\n"+e); }
public static void main(String[] args)
openPDF myApplication = new openPDF();
Why do you have a Desktop object as a member but instead of using it, you execute a command with Runtime (which is not platform independent!)???
-Puce -
Create multiple pdf files and open them at once from java application
I came across a very unique problem , i am hoping some one could help me out with that .
I am using itext to create pdf files , i have filtered some records (preferably i can say around 90) which has the option to open pdf for individual record.
Now i need to open all the pdf's of filtered records on a single click , without asking for a open dialogue box.
Can anyone give me an idea how to go about this ??The simplest thing I can think of is to call Desktop.start() for each selected file wich will start the defaut application registred for the file type in the users system for each selected file. In this case it depends on the associated program and/or its configuration if it starts a single instance showing all the files or a separate instance for each file. The beauty of this method is that you don't need to know what reader application the user has installed nor where it is located on her hard disk.
The other option that comes to my mind is ProcessBuilder. There you could set all selected files as parameter list to the call of the viewer application.
This also does not asure that all files get openned in the same single instance but the chance is much higher. At the down side you need to know what viewer application the user has installed and where. Also: when speaking of 90 files you most likely rung into a limitation of the maximum length of the systems command line.
bye
TPD -
Send short message from Java application on mobile phone to server; http
Hello!
My question is: can I send short message from Java application on mobile phone to server - with the use of SMS (WMA) or http connection?
I found this topic http://forums.sun.com/thread.jspa?threadID=5405431 about: "how to send data from midlet to servlet using doPost method".
There is also such topic http://forums.sun.com/thread.jspa?threadID=5408046&tstart=0 about: "CLDC and MIDP - sending SMS to server -> Wireless Messaging API (WMA)".
Please, kindly help me.
Code from the topic mentioned above, edited by me so that it can be read easily:
//http://forums.sun.com/thread.jspa?threadID=5405431
//CLDC and MIDP - Re: how to send data from midlet to servlet using doPost method
I want to know how to pass the values .
for examples : this is what i wrote for doGet
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="+loggedInUserId"&svComp="saveCompHex;
userId and svComp has the data which is very long so i wanted to use doPost.
Now i dont know how to do it.
This is what i have done in doGet (midlet)
public void saveCompanyProfile(String saveComp,int flag,String blankFieldNm)
System.out.println("flag===" flag);
if (flag==1)
displayAlert("Company Profile Edit",blankFieldNm+" field cannot be blank.",AlertType.ERROR, edCmpRecForm, true);
else
String saveCompHex = helper.encodeHexString(saveComp);
// String saveCompHex =saveComp;
HttpConnection httpConn = null;
serverSettings setting = new serverSettings();
System.out.println("saveCompHex===" saveCompHex);
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="loggedInUserId"&svComp="saveCompHex;
System.out.println("url of save company profile:: "+url);
InputStream is = null;
OutputStream os = null;
try {
// Open an HTTP Connection object
httpConn = (HttpConnection) Connector.open(url);
System.out.println("urlMidlet1 save edited company data===::" url.length());
// Setup HTTP Request
httpConn.setRequestMethod(HttpConnection.POST);
httpConn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
System.out.println("urlMidlet2===" url);
int respCode = httpConn.getResponseCode();
System.out.println("respCode edit company profile=====" respCode);
if (respCode == httpConn.HTTP_OK)
StringBuffer sb = new StringBuffer();
os = httpConn.openOutputStream();
is = httpConn.openDataInputStream();
int chr;
while ((chr = is.read()) != -1)
sb.append((char) chr);
String sResultSvCompanyProfile= sb.toString();
System.out.println("+++++++++++++Company sResult+++++++++++++==="sResultSvCompanyProfile);
if (resultViewCompanyProfile.trim().equals(""))
System.out.println("++++++++++++++If++++++++++++++SaveCompanyProfile===");
displayAlert("Login Incorrect","Username and Password incorrect", AlertType.ERROR, mainForm, true);
else
System.out.println("++++++++++++++Else++++++++++++++SaveCompanyProfile===");
//companyProfile();
displayAlert1("Information","Company Profile edited successfully", AlertType.INFO, profileMenuScreen, true);
else
System.out.println("Error in opening HTTP Connection. Error#" respCode);
//the line below divided into two lines because it was too long
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
catch(IOException e)
e.getMessage();
finally {
if(is!= null)
try
is.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(os != null)
try
os.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(httpConn != null)
try
httpConn.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
} //end finally
} //end else (?)
} //end savecompanyhi,
SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
Seimens has some phone with their own api's to send sms.Check out seimens site for more info
BTW, What do you mean buy sending SMS to Server????
If you want to send message to server you can do it with Http.
HTH
phani -
How to call javascript from java application
How can we call a function written in javascript from java application (core java not applet)? How will java identify javascript?
Is there any such options ?Try creating a page called launcher.html (for example). That does this:
<html>
<head>
<script language="javascript">
windowHandle=window.open("http://www.javasoft.com", "", "height=700,width=1000,status=no,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,top=5,left=5");
</script>
</head>
</html>Now you launch IE (or whatever) with this page using the Runtime class. After x seconds (after the second window has been launched) try killing the process. Hopefully it will kill the original window you opened and not the window you popup (the one without toolbars etc)
It might kill both windows but I can't be bothered to test it. If it does you'll have to try and find a workaround. -
Storing chinese in client odb from java application
Hi all,
first i like to thank Greg Rekounas for his wonderful support and contribution....
This is my server setup.
os-windows 2000 sp4
db-oracle 9ir2 (unicode with AL32UTF8 charset)
lite-oracle10g r2 (with latest patchset)
nls_lang- AMERICAN_AMERICA.AL32UTF8
storing and retriving chinese in oracle 9i database from isql*plus works.
lite configuration.
1. In $OLITE_HOME\mobile_oc4j\j2ee\mobileserver\applications
\mobileserver\setup\common\webtogo\webtogo.ora file edited the JAVA_OPTION
to:
JAVA_OPTION=-Djava.compiler=NONE -Dfile.encoding=UTF8
2. In $OLITE_HOME\mobile_oc4j\j2ee\mobileserver\applications
\mobileserver\setup\dmc\common\win32.inf file, added the following:
a. In the <file> section, added the following:
<item>
<src>/common/win32/olilUTF8.dll</src>
<des>$APP_DIR$\bin\olilUTF8.dll</des>
</item>
b. In the <ini> section, added the following:
<item name='POLITE.INI' section='All Databases'>
<item name="DB_CHAR_ENCODING">UTF8</item>
</item>
<item name='POLITE.INI' section='SYNC'>
<item name="DB_ENCODING">UTF8</item>
</item>
published the application developed in java using packaging wizard.
downloaded the client in the pc with the following config:
windows 2000 (english)
nls - default.
installed chinese language support.
tried to access 9i database from isql*plus and stored & viewed chinese characters sucessfully.
tried to store a chinese character from java application in the client odb -- failed.
values are getting inserted from the application but when i view them back it shows & # 2 6 0 8 5 ; (i have included a space in between all 8 characters.
but when i copy this no and paste in msword it shows 日(chinese character)
i dont know the exact reason for the above scenerio...................
Also please help me on this too.......
why can i store & view chinese characters sucessfully in isql*plus from the client machine while i cannot do the same on client odb from java application even though the lite config are done to support utf8?
is anything i left out?
should i do any codes changes in java?(java application is of verision jdk1.4_13)
Thanks,
Ashok kumar.GSorry for late replay!! in the SharePoint server both the Claim based and Classic mode is enabled in the server, but still I want to get authenticated via Classic mode just like it happens in SharePoint 2007 and 2010, so do i have to use a different
set of classes to do that if yes can you please tell me those ? -
How to call webservice from Java application
Hi XI gurus
Pls let me know how to call a webservice from Java application.
I wanted to build synchronous interface from Java Application to SAP using SAP XI
For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
Regards
MDHi,
If your JAVA Application is Web based application, you can expose it as Webservice.
JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
So we can Use SOAP Adapter or HTTP in XI..
If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
If you are dealing with the Webservice and SAP Applications means check this
Walkthrough - SOAP XI RFC/BAPI
REgards
Seshagiri -
Accessing XML Publisher Reports from Java application
How to accesss the XDO Reports from Java application?
I am wondering that we need to get the URL for accessing the report and call the URL with in Java program?
Is that right? Is there any other option? Any help is greatly appreciated.You need to write some class based on the BI Publisher APIs taking data, template, output format, etc.
Pehaps the following Blog of Tim Dexter shines some light on your question
http://blogs.oracle.com/xmlpublisher/2007/02/27#a166
Marcos -
To Open a Brio Query from Java
Hi,
I am using Hyperian Intellegence Explorer to get a information from the Data Base.
I want to do it automatic,because this we are doing this as a BAU.
I want to reduce my work load ,so thatpln to write a Code.
Please help me how to Open an existing BrioQuery from Java.corlettk wrote:
http://geocities.com/khory_scythe/Praxeum/jedicode.html
Yeah that fits... except I swear a lot. Is that allowed?
Jedi use their powers to defend and protect, never to attack others.Can we throw an exception for this one?
edit: actually i disagree with the whole jedi code, its wrong, wheres the fun...
Mel -
Can we run EXE file/ Another Java Program from Java Application? How?
Can we run EXE file and another java program from java application?
Thanks in advanceExample running adobe acrobat
String command = "C:\\Program Files\\Adobe\\Acrobat 5.0\\Reader\\AcroRd32.exe /t "+selectedDocument+" \\\\CONTROL\\HP LaserJet 4L";
Runtime rn = Runtime.getRuntime();
Process process = rn.exec(command);
process.waitFor();rykk -
Flash CS4 Hangs when opening a flash CS3 file
Hi to all,
I'm having a big problem with a flash file. I installed CS4,
and trying to open a flash CS3 file crashes CS4. It´s a
complex file, but it opened quickly with no problems in CS3.
Windows Vista Home Premium 32bit
Intel Centrino Duo T2050 1.6 Ghz
2 Gb RAM
Nvidia GeForce 7600
Thanks in advanceHmmm - I havent experienced this here - CS4 opens all of my
CS3 files no
matter how large or small and across netwrks. I would try
opening your file
in CS3 again, do a save as with a new name, then launch CS4
and try opening
the newly saved file.
Adobe Certified Expert
www.keyframer.com
www.mudbubble.com
(if you want to email me, don't look)
"sandesign" <[email protected]> wrote in
message
news:gembjl$a3f$[email protected]..
> Hi to all,
>
> I'm having a big problem with a flash file. I installed
CS4, and trying to
> open a flash CS3 file crashes CS4. It?s a complex file,
but it opened
> quickly
> with no problems in CS3.
>
> Windows Vista Home Premium 32bit
> Intel Centrino Duo T2050 1.6 Ghz
> 2 Gb RAM
> Nvidia GeForce 7600
>
> Thanks in advance
> -
How to invoke DOS application from Java application??
I try the following but it didn't work to invoke command prompt and java.exe, it
is working to invoke javac.exe. Any ideas why??
import java.io.*;
public class CallJavaTest
{ public static void main(String[] args)
{ try
Runtime.getRuntime().exec("C:\\WINNT\\System32\\cmd.exe"); //doesn't work!!
Runtime.getRuntime().exec("javac "+ "Test.java"); //it works!!
Runtime.getRuntime().exec("java "+ "Test"); //doesn't work!!
catch(IOException e)
System.out.println(e);hi
String[] cmd = {"cmd","/c", "start",enteryourdoscommandhere};
Runtime rt = Runtime.getRuntime();
Process ps = rt.exec(cmd);
ps.waitFor();
int ev = ps.exitValue();
it works for my winXP.
hope it can helps and not too late .. -
How to execute any cmd command from java application?
Hi all,
How to execute or call any command of cmd from java application??
Is there any method to do so??
Or, is it possible to do it using Runtime.exec() ??? And if so, how to use it, please explain with ab example...
I'll highly appreciate....
Thank you.If google would be the best option, then I would not be on Sun's forums and I would not have asked experts like you, sir !! :-)
Neway, I got the solution from PhHein !!
Good link indeed..
Cheers.. -
Can I execute MySql's command from java application?
Can I execute MySql's command from java application? And how?
For example :
load data local infile 'D:\\myData.txt'
into table myTable
fields terminated by ';'
lines terminated by '\n';1. get the jdbc driver for mysql from the mysql site at: http://dev.mysql.com/downloads/connector/j/5.0.html
2. follow the installation instructiions... which you'll also find in your mysql manual...
Happy travels. Keith.
Maybe you are looking for
-
Clarifications on EBP-SUS and MM-SUS Scenario
Hi ! We are planning to implement EBP-SUS and MM-SUS in one Client . Request you to help us on the following issues. 1. While the outbound messages will not have a problem from MM & EBP, how do we route inbound messages to MM & EBP effectively. Shoul
-
Date Manipulation in PHP, MySQL, ADDT
I have a datetime stored in MySQL I retrieve it from the ADDT update transaction via the following statement: $last_date = KT_escapeForSql($tNG->getColumnValue("last_kpi_gen_date"),$tNG->getColumnType("last_kpi_g en_date")); Now I want to add 1 day,
-
I found a php code and I want to convert it to CFM. I already converted most of the code by there're some that I don't know how to. I'll post the part that I don't know how to. Hopefully someone can help me
-
When i try to install my newly bought CS5 it says"The serial number is not valid for this produkt" what to do??? / Jojja
-
Extends ADFBindingFilter filter on ADF Faces
Hello everybody, I'm using DynamicJDBCBindingFilter that extends ADFBindingFilter on JDeveloper 10.1.3. The problem is that when I'm redirecting from this filter to another page, after some validation, a message appears on OC4J Log: 2007-01-16 15:26: