Accessing Windows dial-up connections from java
Hello,
Anyone has any idea how to go about accessing Windows existing dialup connections and instruct windows to dial-up to internet using the selected connection profile?
1. why are you using java for a Windows only program?
2. why are you attempting to do something windows specific for
a non-os specific language
WOW!
I've been using java for applications I only run on Windows, Didn't know this is frowned own. You gotta be kidding me right? Do you really think all java programs are written in mind for it be be platform independant? I've been programming in java for around 3 years and we only run it on Windows systems. Non-os specific is nice, but everyone that programs using java isn't looking for that feature. If everyone else out there is only using java because it's platform independance please correct me, I'll be very surprised. One more question, just becaus he is possibly only going to use for a windows program, he should go learn another language? Sorry this post really surprised me.
Similar Messages
-
Run dial-up connection from Java Program?
Is there a way to run dial-up connection from a Java Program? It needs to platform independent.
Thanks.
VirumI very much doubt it, at least not platform independent. I had a, oops, heck of a time doing that from Visual Basic, where it is much easier to work with operating-system stuff like that than it is in Java. I finally ended up buying a RAS component to call from my VB program.
-
Flash accessing the Dial Up connection
I'm new to the forums, so hello to everybody.
I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect? I know that Flash can't use Windows services directly, so how can I accomplish this?
My second issue is that I also would like to create a photo-shoot system, where the Flash movie takes a snapshot from the webcam, saves it as a file, then the user needs to input his email address and the file is sent by email as an attachment.
I hope I've been clear enough. Any help would be much appreciated. Thank you.Hi
Check out this link:
http://www.adobe.com/devnet/mobile/articles/tel_url.html
But i am not sure.
Saransoft -
How to establish a connection from java to SAP Netwevare server
Hi All,
As per my requirement i need to create a connection from Java to SAP Netwevaer Server inorder to access the docs from KM. PLZ provide some sample code
(I know how to connect from java to SAP R/3 syatem using JCo connector).
Can anybody help me.
ADV ThanksLook
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/6615ea90-0201-0010-be81-e7a300fdf212
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis -
How to create windows users and groups from Java
Hi,
Can any one please tell me, which Package/API will helps to create windows users and groups from Java.
Thanks,
M.Prem.You can't do it with pure Java, and it's not in the core API. You'd have to write a native function to do it, using whatever API Windows provides, and then call it with JNI. Or look for a third party native-based Java library that already does that.
-
How to connect from java without using oracle client installation
hi ,
Please tell me how to connect from java without using oracle client
Thanks & Regarshttp://www.orafaq.com/wiki/JDBC#Thin_driver
-
I need an suitable InitialContextFactory to connect from java to OID
Hi,
I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
but it gives back the following error to me:
Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
Please, help me.
Thanks.Hi,
Have a look at my response to this thread :InitialContextFactory to connect from java to OID
Let me know how you go.
Cheers,
Sepand -
Oppening a dial up connection with Java
How can I open a dial up connection using a java code ??
i guess you should try
String cmd = "c:\windows\dialup.exe";
String envp [] = null; //environment variable
Runtime.exec(cmd, envp); -
InitialContextFactory to connect from java to OID
Hi,
I have a problem to connect from my application java to OID, I was using the following InitialContextFactory in my code in this way:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://192.168.3.112:3061/dn=fedco,dn=com");
but it gives back the following error to me:
Problem looking up : javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file).
I have been looking for about the xml files but I have found that they are necessary when one works with EJBs which is not my case, I need to know if I am using the appropriate InitialContextFactory or if another one is the appropriate for this case.
Please, help me.
Thanks.Hi there,
You are definately using the incorrect InitialContextFactory. The com.evermind.server.ApplicationClientInitialContextFactory is intended for Standalone Java clients that require access to remote EJBs AND have been configured with a client-application.xml file.
Try the following:
//Setup intial context for OID server
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, ldapURL);
env.put(Context.SECURITY_AUTHENTICATION, "none");
env.put(Context.SECURITY_PRINCIPAL, dn);
// Anonymous bind to create the intial context
try
dirCtx = new InitialDirContext(env);
log.debug("New LDAP context created " + dirCtx);
catch (NamingException ne)
log.error("Failed to create InitialContext for LDAP server:", ne);
throw new RuntimeException("LDAP server is not available");
Where ldapURL is "ldap://<host>:<port>" and dn is the OID content you are interested in e.g. "dc=site,dc=company,dc=com".
Hope this helps.
Cheers,
Sepand -
Call Windows COM/DCOM objects from Java on Linux
Hello, is it possible to call COM/DCOM objects running on Windows from Java on Linux machine? Thank you.
I don't know anything about it but it looks like EZ JCom in conjunction with the included Remote Access Service does what you're after. It's not free though.
http://www.ezjcom.com/ -
How to automatically initiate a dial-up connection from Lookout and send an attachment
Folks:
I am trying to send (as an attachment) a spreadsheet file via email.
How can I programatically (from Lookout) initiate the default dial-up,
send the email (and attachment) and after success (btw, how do I
measure this?), ... then close the dial-up connection.
I am using 6.0.1 running on XP Pro (SP2).
Thanks!
KevinHi Kevin,
Here are some documents that should get you started with setting up a dial-up modem in Lookout and sending an email:
Dial-up modem settings for Lookout:
http://zone.ni.com/devzone/conceptd.nsf/webmain/108f6fa501dc4a2e86256a6f00519bef?OpenDocument&node=D...
Commands for communicating with a modem:
http://digital.ni.com/public.nsf/websearch/8EC833DA692DFBA286256BA100020214?OpenDocument
If you need to dial a number you will use the pager object (take a look at the links from this page as well):
http://digital.ni.com/public.nsf/websearch/9123C2685B3B977F86256C02005E6CA2?OpenDocument
Example of using Lookout Mailer object:
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3E98156A4E034080...
Lookout Mailer object troubleshooting:
http://digital.ni.com/public.nsf/websearch/843FDCF3138EEEAE862569EA006DA113?OpenDocument
Check out the Lookout help on the mailer object. There is an attachment data member that you will use to point it to the file you want to attach to the email.
Let me know if this helps at all.
Regards,
Bryan Snarr
Field Engineer
Northern California
National Instruments -
Accessing XI Tables (ABAP Stack) from Java code
Hi,
IS it possible to access tables like SXMSPMAST, SXMSPEMAS directly from Java code without the use of any RFC or BAPI in between?
Cheers,
EarlenceI think it is technically possible, as you can get access to the JDBC Connector service using J2EE's JNDI feature ... Then you can use the internal DB datasource to read data from tables (read ONLY, cuz I'm not sure it is a good idea to update data "outside" the box, and reading can also have potiential perf or stability issue) ... Some (better) methods can also exist !
Chris
Edited by: Christophe PFERTZEL on Jan 15, 2010 3:07 PM -
How to access database file on CDROM from Java Programe??
Hello friends,
I am making online exam application.
I want my question database to be reside on CDROM.
but i am not getting any idea how to make DSN or static path that resolute the path that i have mentioned for CDROM.
basically i want to know how to access CDROM from Java Programe????
Thanks in advance
Navik PathakOnce you mounted the CDROM (something maybe as /media/cdrom) as a file system (or assigned a drive letter to it like D: or F: or whatever), the files are accessible normally.
-
How to call windows help files .hlp from Java program
Hai all everybody
How to call windows Help file that is xxx.hlp files from java programs
any help great!!!!
regards
veeruHow about
Runtime.getRuntime().exec("start xxx.hlp"); -
Close parent window of Mozilla browser from Java
Hi All,
I want to open a URL in a controlled browser from java stand alone application. I was able to do this in Netscape of UNIX OS. The method followed is given below.
1. Launch a temporary HTML file which contains Javascript (to launch the URL in a controlled window). This is done using --- Runtime.getRuntime().exec() method.
2. Close the parent HTML file on 'onLoad' using Javascript. (self.close).
[ I tried window.close() & top.close() also.]
Now I need to support the same for "Mozilla" also. But mozilla just ignores the close() command of Javascript.
1. Is there any alternative way to close the parent window in Mozilla browser ?
2. Is there any way to close the parent window from java by using 'Process' class/ threads/ ??
3. Any other way???
Note : I am using the intermediate window for using Javascript. (controlling the browser properties). Since Java cannot communicate to Javascript directly, I am forced to have such an intermediate HTML file.
Thanks in advance.
surekha_Venugopal.Some more details :
Mozilla browser will close a window using window.close() command, but only if the window is opened by the script. If not it will not close it.
Here, I am opening the window from Java application. That is why closure of the window is failing.
Trying to find a solution.
Regards,
Surekha_Venogopal
Maybe you are looking for
-
Mixed Mac & PC PCs no longer showing up in "shared"cant add windows printer
Hi all, I have noticed that none of the PCs on my network at work are showing up in finder under the 'shared' section, hasnt really been a big deal, i have shortcuts to all the network folders/printers i need to access (main printer is shared from a
-
Delete empty folder in bridge cc 6.0.1 on window 8.1 hang?
I use window 8.1 pro when I delete empty folder in adobe bridge cc 6.0.1x64 , the result is that adobe bridge program hang and it closed itself.It is bug of adobe bridge cc 6.0.1. Yes or Not
-
Capability or admingroup to lock and unlock views
Hi all, I am trying to lock and unlock users via lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object but I get the error: WavesetE
-
Please help! Printing in Lightroom 2.6...can't do it :(
I just bought an Epson Artison 810 and it worked great the first night. Now when I print anything in LR2.6 all I get is a solid gray. It will print my Identity plate and it shows the picture fine in the print window. I can print in PS 4 and all ot
-
Errore nell'esposizione dei dati "Anno Precedente"; Error in exposure data
Versione 10.1.3.2.1.070411.1900 Sto rappresentando dei valori di un anno suddivisi per mese Solo per il mese 4 (aprile) il valore dell'anno precedente non esce. E' inutile dire che i valori esistono nel db. Anche con altre dimensioni (ma sempre con l