Can we automate anu player using java?
i want to automate audio player.please suggest me
I am trying to access .net components (written in C#) from JAVA and is studing the possibility using NJAWIN.
Since NJAWIN is for COM, first I made my .net component exposed to COM (this is another story) and build it.
I am able to use jcomgen.exe to generate stubs against the tlb file built from the .net project. And my simple test seems successful.
My questions are:
1. Is there other way (opensource or freeware) I can access .net component from java directly without going through COM?
2. The component only consists regular classes and methods which mainly doing the database access and data management. There is no controls ot events (no gui). Can I still use NJAWIN (after exposing it to COM) and rely on it?
Thanks for the help.
Similar Messages
-
Can I create Oracle Database using Java ???
HI ...
Can I create a Database using Java... ? If yes can any one tell me how ? I mean provide some codeing help... ???If you mean a table yes, since the create table statement is exactly that, an SQL statement, if you mean an SID then I would have to say (AFAIK) no.
-
How can we prevent back button using java script
how can we prevent back button using java script
Would be quicker for you to google for javaScript
javascript:window.history.forward(-1); -
How can i get system variable using java
Hi,
I just want to know how can i get system variables using java code.
for example i want to get the the date for today or i want to get the number of processes that's running.
Thanks alotHi,
I just want to know how can i get system variables
using java code.
for example i want to get the the date for today or i
want to get the number of processes that's running.
Thanks alotSome generic "system variables" are available though Java, usually through the System class.
Date today = new Date();
is instantiated with the current date and time.
Other system values, like environment values, should be passed to java through the command line (-D option) by setting system properties.
Finally, platform specific values like the number of processes running will have to be written in platform specific code and executed by JNI (java native interface).
Java is platform or system agnostic. Common system values, like time, are implemented. Hopefully you won't need platform specific values. -
Can i change system time using java
hi guys can i change system time using java iam doing one app in that i have to change the system time (my os is windowsXP) please tell me how to change the time
What does this have to do with Swing?
Well, there is no Java API that I'm aware of.
However you can execute any Windows command by using the Runtime class. So you should be able to invoke the Time command.
Search the Java Programming forum. There are plenty of examples on using the Runtime.exec(...) command. -
Inquiries: Creating mp3 recorder/player using Java
Dear Gurus & Members,
I am very new in Java. I wonder if it is possible to use Java to create a small application/plugin on my e-learning website that will record user's audio through microphone, save as .mp3 on the user's pc and enable user to playback the mp3s when they select. If yes, what do I need and how can i do?
My website is created using mostly Macromedia Flash. Can Java be incorporated with Flash? How can i call this java plugin from the Flash-created button on my site?
Is there any freeware that has built such application? Any suggestions and ideas are highly appreciated. Hope to hear some replies soon and have a pleasant day.
Thanks in advance,
JaniceIf you are doing it on Windows, JMF can use the DirectX stuff to play anything that is supported by Windows Media Player. But cross platform-ness goes out the window. Of course, you could write your own JMF codecs for any format under the sun if you know how.
-
Can we automate importing certificate using keytool
Hi,
One of my application's requirement is to have a digital certificate at client side.
Client performs the following tasks during the deployment of the application.
1.Takes certificate from authorized CA
2. Exports digital certificate as a cer file. (CER encoded binary X.509 Certificate)
3.Use keytool (supplied with JRE) to import the certificate into keystore with an alias.
Then only my application can load the certificate from keystore.
Can we automate both step 1 and Step 2. ..?
Or atleast step 2 (because it requires the novice user to type some commands and needs little knowledge about commands as well).
Thanks in advance.Thanks for your quick reply.
Its really useful for my requirement.
I've a small doubt.
As it said, before a keystore can be accessed, it should be loaded.
There is a method called "setCertificateEntry" for creating setting / creating certificate in Keystore
I've a certificate issed by CA and imported it to a file(.cer file) through certificate manager
How do I create Certificate from a .cer file.
Thanks in advance -
How can we automate compass rotation using UIAutomation
Hello,
I have to automate compass application using Instruments. How can this be possible?Hi
I agree with the others!
Here you have a simple brute-force example.
Greetings
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
Add.zip 138 KB -
How can I load an applet using Java Plug-in?
I have written an applet and have tested with appletviewer, but I can't load it from a browser. Ghlin told me that I need to use Java Plug-in to load it. Please tell me how.
Click on the Products and API link at the top left of this page. Download the Java Plugin. Be sure to get the developers version. Inside that developer's version there is a tool called HTMLConverter. Run HTMLConverter on your HTML and it will modify the applet tag in such a way that if the user already has the Java Plugin then it will use it. IF not, then the user will be asked if he wants to download it.
-
How can i generate BARCODE Images using JAVA Code
Hello ,
My requirement is to generate BarCode Images to Print using JAVA Code.
User will give only
1) String.as Input Parameter and
2) Type of Encoding you want to apply on to the String.
outPut : code should generate Bar Code Images as per the requirements.
can any one help me out with jars ????? or any link which can provide me start.1) I have requriement like generate doc file with
more than one barcode image on that document.???
So?
If your chosen "doc file" format supports inclusion of multiple images there's no problem.
If it doesn't, choose another format.
2) I am able to generate .doc file but in which
format i should open that doc file.????
The same format you used to create it.
3) Main thing is how can i put more than one barcode
image on that doc file????
That would depend on the file format and the API used to create it.
is any one faced the same problem or gone through
same requirement.
Almost certainly. And they solved it too, given the document I'm looking at right now which is an e-ticket for an airline that has many barcodes and other generated images on it.
So keep on trying, grasshopper, and you may find enlightenment. -
Can It Be Done? - Using Java Class Files from a DB
Hello,
I am interested in storing a binary java class file in my oracle DB. Then I want to get it out at runtime and execute methods on it. I am planning on casting the object to an interface and executing the methods within. Please let me know if this is possible and where to look for more info, and a code example would be awesome.
Joe
[email protected]I think you are going to need to serialize the objects and the classes. (Don't get stuck on semantics here, I don't mean use Java Serialization to write the Class instance, I am referring to writing the .class file to a field in the database.) Obviously the instances are what you are interested in (since you mentioned casting them to interfaces and invoking methods on them), but the class definitions will need to either be available already, or stored elsewhere in the database.
-
How can i install any program using java code
Hi friends,
i want to know how can i install any software using c# code.Hi,
You may change your title, Since this is C# forum.
>>i want to know how can i install any software
usingc# code
So what kind of your software?
In C#,we can install and uninstall "*.msi" files (setup).
The code to install software without user interface is:
private void installSoftware()
Process p = new Process();
p.StartInfo.FileName = "msiexec.exe";
p.StartInfo.Arguments = "/i \"C:\\Application.msi\"/qn";
p.Start();
For more detailed information, please refer to article
C# - Installing and uninstalling software in codeproject.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Can i create a sequence using java?
Hi,
I have a problem here.
I have to update records to my oracle9i database.
One of the fields in my tables has to be auto number, meaning whenever i add records to this table, this fields will automatically be updated jus like a counter.
I am told that i could do this by writing a sequence. can any1 help me out?
Thanks a million!To create a sequence in Oracle you can use this (with SCHEMA being replaced by whatever Schema that you are adding the Sequence to)...
CREATE SEQUENCE SCHEMA.SEQUENCEGENERATOR
START WITH 1 INCREMENT BY 1 MINVALUE 1 CACHE 20 NOCYCLE NOORDER ;
From a stored procedure or java code you could
then use the following to get the next available number
SELECT SEQUENCEGENERATOR.nextval INTO v_record_id from dual;
This may or may not work for your needs. Everytime the Select statement is executed a number will be "used". As an alternative you could use something like .... Select Max(number) from Table (this could be table that contains your "auto number" or a seperate support table. -
How can I open a program using Java and then perform certain tasks with it?
For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?write a Java program that opens MS Paint and then
manipulates that program. This can be useful to
automate certain tasks."manipulates" is a too wide term. Let me narrow down:
1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
-BJ
Message was edited by:
Bimalesh -
How can I run other programs using java program
hi experts,
I am trying to execute a set of commands from java program
eg: from command prompt
java CommandExecutor c:\winnt\notepad.exe c:\some.exe c:\onemorecommand.exe
and inside the CommandExecutor main method..
public static void main(String []arg)
for(i = 0; i < arg.length; i++)
Runtime.getRuntime().exec(arg(i));
the above code is executing all the command one after the other, but I want to execute the above commands squentially, i.e I want to execute the second command only after finishing the first command and the third after finishing the second and so on depending upon the arguments passed, how can I acheive this...
I have tried to use the Process which is returned by the exec(arg) method but the exitValue() returns same value before execution and after execution.
thanks,
krishnaDid you try to get the process returned and then try
process.waitFor() method. This waits for the process to finish.
After that try the next execution
Maybe you are looking for
-
Planning with planning material
Hi All, I am working on the make to stock scenario where I am working on the strategy 63(planning with planning material). As per scenario once I entered the sales order for variant material it should consume the PIR of the planning material but it d
-
Magic Trackpad with Bootcamp?
Hi, I have been reading on the support page, that one need Boot Camp 3.1.35 to enable the Magic Trackpad support on a Windows partition. Now 3.1.35 needs obviously 3.1 to be installed. When I try to install 3.1 the installer says I need Boot Camp 3.0
-
Job opprotunities for freshers in SAP - ABAP
Hello People , My name is Sashi and i am not sure whether this is the right platform to say this. " I am fresher completed the training in SAP ABAP/4 recently,looking for a job in the developing career and also i have posted my resume
-
HT204266 When I try to download an app I get the message, your Apple ID has been disabled
I just acitvated my iPhone 4 and tried to download an app. I get the message Your Apple ID has been disabled.
-
Using itunes to arrange apps on phone
Has anyone tried this new feature, using itunes to arrange your apps on a virtual desktop then syncing with phone? How do you do?