Windows Programming with Java??? Is it possible???

I have a small request from a client (Windows User) who wants a really simple POP3 email checker. I basically need to achieve the same thing that many email clients do, where they show some sort of symbol in the System tray when there is new email. I, however want to do this without the actual email client. All I want is the checker. This program will not download the email, gather information or anything. It will simply check the POP3 account and let the user know if there is new email.
1.Can I get an icon to appear in the system tray and have a program that runs in the background, simply checking the POP3 account for new mail???
2.If it is possible to interact with windows, then how is it done??? If this is too large of a question and you know of some resources that can answer this question for me, that will do.
3.Is it even possible to have Java programs run in the background without appearing in the task bar??
4. Am I trying to do something with Java that it just plain cannot do???

Another really god option is to use the coroutine package from http://www.nevaobject.com/java/index.htm. This allows you invoke COM and Windows API's without having to write the JNI yourself. Its about $695 for a site-wide development license and has no binary distribution costs. A nice, cheap solution to spending lots of hours doing it youself. From the few things I tinkered with, it really does a great job too, but I have not deployed in a real production environment.
Chuck

Similar Messages

  • New "Windows Programming Using Java" Website

    Our newly created "Windows Programming Using Java" website (http://fivedots.coe.psu.ac.th/~ad/winJava/) is for programmers who want to extend Java's capabilities on Windows XP and/or Vista, but aren't sure where to start. One of the drawbacks of Java's portability is that many Java programmers have a rather sketchy knowledge of Windows-specific programming.
    We plan to explain how Java applications can utilize Windows application software, OS features, and hardware beyond the reach of Java's standard libraries. A variety of Java/Windows programming techniques will be explained, including:
    * Java's employment of the Win32 API via C, JNI, and J/Invoke.
    * Java's utilization of Window's Command Line Interface (CLI) and batch files, accessed through Java's Runtime, ProcessBuilder, and Process classes.
    * Java and Windows object-based scripting, centered around the use of VBScript, Windows Script Host (WSH), and Windows Management Instrumentation (WMI).
    * Java interoperability with COM, including hosting of ActiveX controls in Swing containers using jacoZoom.
    This website is a work in progress, with four chapters available for download at the moment. We'll be adding more regularly, and would love feedback on what we're doing.
    Thanks,
    Gayathri Singh and Andrew Davison
    [email protected] and [email protected]
    Edited by: AndrewDavison on Jun 20, 2008 1:36 AM

    Hi, I am looking the similar kind of requirement that you had done.. Do you have any more details on the code that is working for you . All i need is if the user logs in successfully in windows, the the app should be accessible. Please let me know if you have the code with you on this problem.
    Thanks in advance
    "what i meant is the we b applications running in my system, when i access the application iam able to to login automatically with windows authentication and now in case of other users following process happened:"

  • Can i create an exetutable (.exe) program with java???????

    I would like to learn how i can create an exetutable (.exe) program with java.
    Is there any additional package which i should download or buy it?
    Also i would like to write files into CD's direct from my application.
    Is there any library which i must download or buy?
    Thanks!

    check out the free open source GNU gcj native compiler for Java to see if it will do what you want.
    http://gcc.gnu.org/java/
    for writing data files you could use java.io.BufferedWriter. For sound files, look in the javax.sound package

  • Never programmed with Java

    Hello
    I have never programmed with Java, and dont know, what i can do, I use PHP, but, i am only a novice at it.
    I was wondering, is it possable to get data from a page, and put it into an image? if there is no data from the page, it will ask for the data to be added, and this will update every so often?
    Also, Most of you know about google maps, where you can search for something, well, can i do this same thing in java, have a map, not of the earth, but for a game, and make it easy to add different parts, so that we can search for it, and people can find it easy to look for what they are looking for?

    I think Google Maps is programmed in JavaScript using AJAX (short for Asynchronous JavaScript and XML) and is what as known as a web application. Google has released an API (still in beta) for working with Google Maps. The webpage for this API is http://www.google.com/apis/maps/. More about the development facilities Google provides can be found at http://code.google.com/.
    I've never read the source code to Google Maps before (a lot of which is available by just viewing the source code of the Google Maps webpage, which can be done by clicking, View > Source in Internet Explorer and View > Page Source in Mozilla Firefox), however I don't think it is a terribly complex application (this does not mean, however, that the source code is easy to read). I think the way it works is by requesting individual images as needed from the Google server and piecing them together on the client side (i.e. in the browser). Basically what you would need to do to use their existing code is to replace all requests made to the Google server with requests to a server of your own and have the server return the corresponding images. This might not be particularly easy to do.
    In my opinion, a better approach is just to write your own custom application (probably in Java) which simply mimics the behavior of Google maps, except with your own custom images. This way, you don't have to reverse engineer an entire web application before beginning to write one.
    Writing your own application for this purpose is not as difficult as it sounds, especially not in Java. Once understanding the basics, you will not be too far off from being able to write your application.
    Let's start with the most basic program (this program would be located in a file called Program.java):
    public class Program {
       public static void main(String[] args) {
    }This program simply starts, does nothing, and exits. I will explain this piece of code line by line, but first, I would like to gauge how much you already know to figure out how best to explain this. Have you used classes in PHP before?

  • OSX 10.4.10, Net beans and Sams Programing with JAVA

    I am brand new to Java so I downloaded Net Beans on my MAC. I bought a copy of Teach Your Self Programing with Java in 24 hrs.
    So far I got the first three programs to compile on Net Beans but got stuck when they started to talk about arguments. The following will not compile. Starting at line 2
    1) System.out.println("The " + arguments [0]
    2) + " " + arguments[1] + " fox "
    3) + "jumped over the "
    4) + arguments[2] + " dog. ")
    I get the little red x on each line.
    Is the book wrong or am I missing something?
    All the tutorials talk about Javac. I can't seem to find it or get to it on my computer. How do I know if I even have it?
    And is there such a thing as a "command line" on a MAC?

    Hi, you should put any code you post in between code brackets like this:
      code here   I dont use a mac or netbeans but javac is the java compiler, you would not have been able to compile the first two. The .exe (or whatever mac executable is) is usually located in the lib folder in the java directory. It comes when you download JDK. As for the code, it would help me if you posted the first couple lines of the error message. It looks fine to me, but I would need to see your whole class in order to help you further
    and yes there is a command line on a mac...i think its called terminal and usually looks like a little computer
    Edited by: jaredL on Sep 20, 2007 7:45 PM
    Edited by: jaredL on Sep 20, 2007 7:47 PM

  • How can I develop co-broswing on Windows platform with java language?

    How can I develop co-broswing on Windows platform with java language?
    The function will be realized
    Now I want to develop a co-broswing system with java language on Windows platform.That is to say I will develop
    a application run on client to track the present browser.Wheh the URL address of your present if changed(for example
    when you click a link or submit a form),the application will capture the new URL address and send it to the other
    client that make co-browsing connect with you.The browser on the other client side will catch the new URL and refesh
    the page to show the page.
    The question I fall across and want to ask you
    (1)How to watch system process with java on the Windows platform?Because I want to get the process information of
    the present broswer,and then get the URL address of the present broswer.
    (2)Develop an application to watch the URL address of the present broswer continuance,If the URL address is changed,
    then send the new URL address to the client on the other side,let his broswer to show the new page using the new URL.

    Paulc, A proxy server is not the right thing.
    What our man here is looking for is a solution for two
    users to kind of surf the net "in tandem" - when one
    user navigates to a different web page, so does the
    other user,
    These are typically used in call center applications
    where the advisor guides a caller through , say
    filling in an insurance form or pointing him to the
    right product specification pages.
    Xing, why are you using Java for this ? You need
    something that has better windows integration. If you
    look on MSDN.microsoft.com and search for "explorer
    bar" you will find solutions to the questions that you
    raised.
    There are also commercial products on the market that
    already do this kind of stuff. there is one from
    www.genesyslabs.com which is considered to be the best
    of breed.
    It is difficult or almost impossible to do this in
    Java for a commercial application.
    If you are developing this as an academic exercise,
    give it a try. Post your email address here, and I
    will contact and help you out if you like.my e-mail is below ,I want to contact you and need all of your help.
    [email protected]

  • Is it possible to create java standalone programs with java ME 8

    Hi,
    Comparing java ME to java SE, I have the impression that midlets are similar to applets.
    When working with java SE, I usually make standalone programs.
    Now, I wonder if it is also possible to create also standalone programs for java ME, if the classes are only  using java ME API's.
    I already noticed that netbeans does not allow to build a project that does not contain a midlet, but maybe, it is possible to create a jar file
    using the javac and jar commands. Or is there a specific reason why netbeans does not allow to build a project without midlets?
    The reason for asking is, that I often make small tools in java that ae then called from a linux script. I imagine that this might be useful on the raspberry pi as well.
    Thanks in advance
    Jef

    Hi Jef -
    Comparing java ME to java SE, I have the impression that midlets are similar to applets.
    Sort of - similar life cycle methods - so conceptually, yes.
    Now, I wonder if it is also possible to create also standalone programs for java ME, if the classes are only  using java ME API's.
    In a way, yes. If you build an project, you will notice a JAD file and JAR file in the dist directory of the project.  JAD is the descriptor for a MIDlet - in mobile devices, the JAD
    file is loaded first to determine if the MIDlet has enough privileges to load and run, before the corresponding JAR file is downloaded.
    However, the JAD file can also be included in the Manifest of the JAR and the JAR copied to the embedded device manually and run there.
    I already noticed that netbeans does not allow to build a project that does not contain a midlet, but maybe, it is possible to create a jar file
    using the javac and jar commands. Or is there a specific reason why netbeans does not allow to build a project without midlets?
    You can build JAR files and include them into Java ME Embedded projects, but just like Applets, to use the Application Management System (AMS) on the Raspberry Pi, you must have a MIDlet to run.
    Perhaps you mean that you would like to launch the AMS and load a MIDlet from the command line on the Pi?
    If so, take a look at this section of the Getting Started Guide for the Raspberry Pi.
    Tom

  • Making Windows Applications with Java

    Hello, I have some experience with Java, I have programmed in it for two years and I was wondering how I would be able to create windows applications coding in Java. I know it is possible to do this with Visual Studio and C# but I wanted to know what I need to do it in Java. Please let me know of the packages I need to use with Eclipse and of the specifics. I basically just wanna learn and build basic applications, nothing too complicated. If you can indicate me to some tutorials that would be great. Thanks in advanced.

    Well, I just wanted to learn to make windows applications, like lets say notepad, or winzip, simple applications. I guess just make executable files, .exe files. I dont know how else to explain it. I have had some experience with GUIs but I dont want to have a piece of code that runs only through eclipse or some other JDK.

  • Calling windows programs from Java

    Hello,
    I need to find how to call and pass parameters to windows programs. Specifically I need to call MS Sql server, there is call that I can do from command promt but I would like to give it some GUI interface and ease of use so I could pass some parameters to the program and execute it.
    Thanks.

    Hi thanks for all replies !
    Ok let me explain more about my problem.
    I have a SQL server which runs on MS machine and there is thousands of stored procs that my be recreated once in a while from a directorys. So we have scripts which we have to manually update every time new stored proc is written and run against the server to update all of them at one batch.
    Now I often have to browse to this directory from linux machine and I basically already written the Java program that gets all the files in the directory and passes them via JDBC to the server.
    Thats where the problem starts, when you calling and passing sp to sql without any header seting the jdbc is fine but when you pass sp with such settings for instanse as "SET QUOTED_IDENTIFIER and SET ANSI_NULLS OFF" in the header of stored proc then SQL server complains and fires exceptions on me.
    So this is my problem.

  • How to do a program with java user intarface (internet app) and c++ core

    I want to do a program to run on the internet with java
    but to run the mathematical core with c++ on a SUN machine.
    so, any help will be cool!, any tip about this subjet
    will be apreciate!
    my mail is [email protected]
    and [email protected]
    I am doing a Phd on electronics and i want to do
    a circuit simuilator online.
    thanks!

    One option is to use Java Native Interface (JNI).
    http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html

  • Using GAP math software with Java 1.4, possible?

    Hello all,
    i work at a tech university and a Prof. has the following question:
    Some of his students want to use a free math software package called GAP with their diploma work. Question is: Can they use the GAP package with Java 1.4 Math Class and how does one interact between using GAP and Java 1.4?
    If anyone can help, i would be much obliged.
    Thank you.
    Raymund

    There does not seem to be any such capability, based on the articles in the GAP forum. You might want to look at this article which mentions a means of using Maple and GAP from Java programs.
    http://www.gap-system.org/~gap/Forum/Solomon.1/Andrew.1/JavaMath.1/1.html
    Chuck

  • Installing windows programs with a disk

    I have to use a program/software that is Windows only for a course I am taking.
    I want to set up Windows on my macbook pro (1 yr old)...
    My question is:
    Once I have windows installed, and running... if I put in this Windows program (disk), will it work like it would on a PC?
    Thanks,
    Clueless

    Once you have Windows installed and running, you will have a PC, so yes, it will work like a PC.
    For clarification, you will need to have your Windows running when you put in your disc. I have seen some people who thought that they only needed to install Boot Camp to have windows compatibility with their Mac, and they didn't understand why their Mac wouldn't load the CD they just put in the drive. They had loaded Boot Camp so to was supposed to support Windows now (in their mind).

  • Writing Programs with java in 10.3.9

    So, I'm trying to teach myself the basics of Java. Here's what I did:
    I went to the apple website and poked around until I found what I THOUGHT was the right download. (JavaForMacOSX10.3Update5.pkg). This SEEMS to have created a Java folder (Applications/Utilities/Java) However I can't confirm that it wasn't there before I downloaded and ran the JavaForMacOSX10.3Update5.pkg. Inside this folder are four applications (Applet Launcher, Input Method HotKey and two other PlugIns).
    After reading a bunch of stuff about Java it seemed like I needed to be working with the Terminal Application in order to do command line stuff. I wrote a little program in TextEditor, saved it as "HelloApp.java" (like the book told me to) and then went to Terminal to try to compile it.
    When I open Terminal, here's what I see:
    Last login: Tue Jun 10 19:29:19 on ttyp1
    Welcome to Darwin!
    [Peter-Booths-Computer:~] peterboo%
    I typed in <javac HelloApp.java> and here's what I got back:
    error: cannot read: HelloApp.java
    1 error
    [Peter-Booths-Computer:~] peterboo%
    Sooo... my questions:
    How do I tell the computer through command line entries exactly WHERE my HelloApp.java file is? On a PC, they do something like cd C:/ to change directories to the location where the file is saved. Is there an equivalent command on a Mac?
    I'm not even sure that I've got the Java JDK or JSE or whatever the heck it's called on my computer. Can someone tell me how to figure that out?
    Is there a slicker way to compile, run etc. code with Java beside command line stuff in Terminal?
    Thanks a TON to anyone who can help me.
    Peter Booth
    Message was edited by: Peter Booth1

    Specify the path in the Terminal; a path will look like ~/Desktop/HelloApp.java if the item is on your desktop; when starting a path, ~ refers to your home folder, while / refers to the top level of the drive. Using 'cd' followed by a path will take you to that location from your current folder unless the path starts with a ~ or /, which work as above.
    A path which starts with ../ refers to the folder enclosing the one you're currently looking at.
    (32782)

  • TSR programming with java

    How can i write a simple TSR program in java (one that stays in ram and is loaded to ram at boot)?

    Haven't seen that acronym for YEARS! Anyway, if you want to start something automatically when Windows (not DOS) starts up, just make sure you can run it via a shortcut. Then put that shortcut into your Startup folder, the one you see when you click Start, Programs, Startup. You can't run any Java program before Windows starts because the java.exe program itself is a Windows executable.

  • Trying to run programs with java 1.4.2_07 after upgrading Eclipse

    Hi All,
    I'm using Eclipse version 3.1.0 and java 5.0 (1.5.0_03). I changed the JRE of a program back to 1.4.2_07, but when i try to run it i get this:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: controller/Controller (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)What the %^#@ ? Will appreciate any help.
    Regards,
    snayit

    Also, another thing people may want to try. A coworker was having a problem where she kept getting the unsupported major minor version error from eclipse after upgrading to the latest version of java.
    All the configuration settings were correct, pointing to the latest vm. I tried starting eclipse with the parameter
    -vm "C:\Program Files\Java\jdk1.5.0_04\jre\bin\javaw.exe"
    and it worked just fine. Without this, it was apparently finding some conflict between jdk1.5 and the older jdk1.4.
    IDE's are nice, but I find configuring them after an upgrade to be exremely painful.

Maybe you are looking for

  • How can I get my old icons back?

    Upgraded my OS on my iPad.  Wondering if there is an option to have my old icons back.  I do not like the new look of the icons.  Seem childish to me.

  • Fund center and commitment item not updated

    Hi! We are using Funds Management together with SRM. When we change the value of e.g. cost center and not the account assignment itself we do not get an update on fund center. When changing account we do not get an update on commitment item either. T

  • Extending the customer to another division

    I am new to SD.....My client requirement is according to the division they select in sales order they should automatically get the payment terms...for one customer.... I got the solution that by extending the customer to another division we can solve

  • Clear flag of Work Protect Mode

    Hi there, I'm using work protect mode functionality in my WD ABAP application. The problem I'm facing at the moment is that I would like to clear this flag explicitly before I trigger a navigation. The scenario looks as follows: 1. I change data on m

  • 2700 Classic not accessing memory card

    Hi,  My 2700 classic does not acknowledge the memory card any more. I tried with a friends memory card with no luck, though both my computer and his phone read my memory card. I have turned phone off, removed and replaced the battery and also restore