Berkeley CSUA MOTD:Entry 20537
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2001/2/8-9 [Computer/SW/WWW/Browsers, Computer/SW/OS/Windows] UID:20537 Activity:high
2/7     How does one start internet explorer (or netscape) on windows
        using java? I've tried something like:
        Runtime.getRuntime().exec("netscape <DEAD>www.someurl.com"<DEAD>
        but this doesn't work. TIA.
        \_ what error do you get?  perhaps you need to specify the path
           to the netscape/ie exe files?  There might also be a way to get
           the system to launch the default browser (perhaps with the Windows
           start command?)
           \_ java.io.IOException: CreateProcess: netscape.exe error=2
              java doesn't like spaces in the path name to the executable,
              and on different systems, these executables might not be using
              the same exact path.
        \_ http://developer.java.sun.com/developer/qow/archive/15/index.html
           \_ I tried their suggestion e.g. "start iexplore <DEAD>someurl"<DEAD>
              but this didn't seem to work, but I figured out something that
              will work:
              "cmd.exe /c start iexplore <DEAD>someurl"<DEAD>
              without specifying iexplore or netscape bringing up the
              browser is much slower.
                \_ This doesn't leave an ugly dos box behind on the screen?
                                         \_ DOS is not UGLY!
                                             \_ it's also not technically
                                                a DOS box, since the original
                                                poster is clearly using NT.
                                                \_ It's a DOS box.  Thanks for
                                                   your input.
                   \_ Just on startup for a moment, then it goes away.
                \_ for the lazy:
                String[] s = {"cmd","/c","start","iexplore","<DEAD>sex.com"};<DEAD>
                Runtime.getRuntime().exec(s);
        \_ I think the better way to do this is to use the Windows API. There
           should be a Java binding to the WinAPI out there. You should call
           ShellExecute on the file.
           \_ thx, I'll look into this.
           \_ Its pretty easy to write a JNI wrapper for the one or two
              functions you need. I've done it before for futzing with
              the registry from java. ----ranga
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2013/8/22-10/28 [Computer/Companies/Yahoo, Industry/SiliconValley] UID:54732 Activity:nil
8/22    http://marketingland.com/yahoo-1-again-not-there-since-early-08-56585
        Y! is back to #1! Marissa, you are SEXY!!!
        \_ how the heck do you only have 225M uniq vis/month when there
           are over 1 billion internet devices out there?
           \_ You think that every single Internet user goes to Y!?
        \_ Tall blonde skinny pasty, not my type at all -former Y!
	...
2013/6/26-8/13 [Computer/Domains, Computer/Networking, Computer/SW/WWW/Browsers] UID:54697 Activity:nil
6/26    This ones for you psb -ausman
        http://25.media.tumblr.com/027fe67c84c2288cc16e9c85db690834/tumblr_mp0ag8DCQI1qzwozco1_1280.jpg
        \- that's pretty good. i wish someone had put the idea to be before i saw
           it on the internet, so see if i'd have put the 9 justices in the same
           boxes. JOHN PAUL STEVENS >> All the sitting justices. --psb
        \- that's pretty good. i wish someone had put the idea to be before i
	...
2012/4/2-6/4 [Computer/SW/Languages/Java, Computer/SW/RevisionControl] UID:54353 Activity:nil
4/02    We use Perforce at work for revision control. It seems to work okay.
        Lately, a lot of the newer developers are saying that Perforce
        sucks and we should switch to Mercurial or Git. I have done some
        searching on the Internet and some others have this opinion. Added
        advantage is that Mercurial and Git are free. However, there would
        be some work to switch for the sysadmins and the developers.
	...
2012/4/26-6/4 [Computer/Networking] UID:54371 Activity:nil
4/26    I see that soda has an ipv6 address but ipv6 traffic from this box
        doesn't actually work (ping6 <DEAD>ipv6.google.com<DEAD>, ping6 http://www.v6.facebook.com
        Is this expected to work?
        \_ Soda doesn't have a real IPv6 address.  The IPv6 addresses you see
           in ifconfig are just link-local addresses; any IPv6-capable machine
           will autogenerate these, whether or not it's connected to an IPv6
	...
2011/11/8-30 [Computer/SW/Security, Computer/SW/OS/Windows] UID:54218 Activity:nil
11/8    ObM$Sucks
        http://technet.microsoft.com/en-us/security/bulletin/ms11-083
        \_ How is this different from the hundreds of other M$ security
           vulnerabilities that people have been finding?
           \_ "The vulnerability could allow remote code execution if an
               attacker sends a continuous flow of specially crafted UDP
	...
2010/11/1-2011/1/13 [Computer/Networking] UID:54002 Activity:nil
11/1    I'm moving from a home in Fremont to another home within the same ZIP
        code in Fremont, and AT&T customer service says I cannot transfer my
        DSL service because DSL is not available at my new home.  Is that BS?
        Are they just trying to push me to subscribe to their more expensive
        U-verse service?  I'm not asking for any lightening-speed connection.
            \_ could be
	...
2012/3/15-6/1 [Computer/SW/Languages, Computer/SW/OS/Windows] UID:54340 Activity:nil
3/15    Why does MS put double-quotes around the '8' in Windows Server 8, like
        the following?
        - Windows 8
        - Windows Server "8"
        \_ Because when they didn't do it, code didn't see the '\0'
           and went over?  Looks better than '8','\0' *shrug*
	...
2009/4/17-23 [Computer/SW/OS/FreeBSD] UID:52867 Activity:low
4/17    If you have a general access AssOS machines, this is worth
        taking this seriously. --psb
  http://c-skills.blogspot.com/2009/04/udev-trickery-cve-2009-1185-and-cve.html
        <DEAD>admin.fedoraproject.org/updates/udev-127-5.fc10<DEAD>
        \_ What does this have to do with MS Windows?
           \_ psb is a bsd lover.
	...
2008/4/2-6 [Computer/SW/OS/OsX] UID:49647 Activity:nil
4/2     I'm running Windows.  How do i get cool virtual desktops
        like on a mac or 100 million other Unix window managers?
        \_ 2 minutes of googling should get you some answers.
           MS has a "powertoy" for this.
        \_ VMware Workstation?
	...
2008/2/1-7 [Computer/Companies/Google, Computer/SW/OS/Windows] UID:49047 Activity:kinda low
2/1     MS tries to buy Yahoo
        \_ GOOG 514.60  -49.70
           :-)
           I'm not the "short GOOG" guy, just someone who envies Google
           employees.
        \_ Official buyout letter from MSFT http://tinyurl.com/3ysrzu
	...
2007/7/10-16 [Computer/Companies/Apple] UID:47242 Activity:high
7/10    My girlfriend downloaded music from iTunes onto another computer,
        which we do not have access to anymore. Apple has record of the
        purchases through the "Purchase History" option, but their policy
        is that you can only download once. I never realized that. WTF?!
        Why would they have such a policy when they clearly know what she
        bought? Has anyone sued them over this? We have so many songs in
	...
2007/5/25-28 [Computer/HW/IO] UID:46749 Activity:low
5/25    Happy towel day.  Question:  does anyone know of a Windows screen
        saver that displays the user desktop as it is, including showing
        updates (such as from logfile scrolling by in an application, etc.)
        but works with the normal MS screen lock function?  -John
        \_ If the screen saver displays the desktop as it is, how does it save
           the screen?
	...
2007/5/13-14 [Computer/SW/OS/Windows] UID:46613 Activity:nil
5/13    Someone please give us a 411 on Windows Vista? Is activation
        tougher than WinXP sp2? Is it impossible to get around now forcing
        you to pay for upgrades? Let me just say that I don't like Windows
        OS.  I don't mind using Microsoft Word, Excel, and Powerpoint,
        and they actually make decent games. However, for over a decade
        I've been sucked into using Windows3.0/95/98/2K/XP because
	...
2007/4/13-16 [Computer/SW/WWW/Browsers] UID:46291 Activity:nil
4/13    I use IE7 to browse a web site, and the server says the UserAgent
        string is
        "UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET
        CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
        Is MS bowing to the Mozilla community?
        \_ What are you talking about?  IE has always reported its UserAgent
	...
2006/11/3-4 [Computer/SW/WWW/Browsers] UID:45153 Activity:nil
11/3    In my WinSock.h for v1.1 (dated 6/4/02), there is this line:
                #define AF_FIREFOX      19              /* FireFox */
        What is that???  FireFox socket address family?
        \_ It is a hack MS put into the windows network stack back in '02 to
           slow down FireFox network connections.
	...
2006/10/31-11/2 [Computer/SW/OS/Windows] UID:45057 Activity:moderate
10/31   A friend of mine said he's loving Microsoft again because Bill G
        is starting to donate all of his money to charity. He's boycotting
        Google, Yahoo, and other mega companies because they're too big and
        too power and thinks they're all becoming the old Microsoft, whereas
        Microsoft has recently done a lot of good things like investing in
        education and charity. He just paid for a copy of Microsoft Windows
	...
2006/9/12 [Computer/SW/OS/Windows] UID:44358 Activity:nil
9/12    I haven't used MS windows since the win95 days. Can someone please
        explain to me what in the world a "domain" is? I'm familiar with
        IP addresses like 128.32.112.233 or domains like http://csua.berkeley.edu
        but what are things like "\\My Workgroup" or "\\MYCOMPANY"?
        Is Microsoft inventing new linguo?
	...
2006/6/14-16 [Computer/SW/Mail] UID:43388 Activity:nil
6/14    I've thrown together an LDAP cgi to let people update their
        phone numbers in active directory.  Small problem: Outlook
        no longer grabs the "facsimileTelephoneNumber" attribute
        for Business Fax.  It sees that attr as "Other Fax".  Does
        anyone know what attribute Outlook is looking for now for
        "Business Fax".  This is Outlook 2003/Exchange 2003/Windows 2000
	...
Cache (4164 bytes)
developer.java.sun.com/developer/qow/archive/15/index.html -> java.sun.com/developer/qow/archive/15/index.html
Developers Home > 10 Products & Technologies > 11 Java Technology > 12 J2SE > 13 Reference > 14 FAQs > 15 Question of the Week Archive > 16 Join a Sun Developer Network Community 17 Profile and Registration | 18 Why Register? The intent is to pass this important, but not always easy-to-find information on to JDC members. The questions are selected from the JDC newsgroups generally because: they are frequently asked, they are significant or timely, or their answers are not easily accessible. Note: If you have a question to which you need an answer, try the 20 JDC newsgroups. You can read through the existing newsgroups, or with your 21 free JDC membership, you can post new messages or threads. AppletContext class, but I haven't found anything as convenient from an application. This can be further refined by taking advantage of the fact that html files are bound to the default browser, so you don't even have to specify the browser! I also need to know how to close the web browser thru an applet? Sat Oct 31 02:13:23 PST 1998 Bala1 Its always nice to get good suggestions from JDC Sat Oct 31 07:52:31 PST 1998 latinretail It should be pointed out that this makes your program less than 100% Pure Java. Sat Oct 31 08:19:04 PST 1998 NUAGINET Launching a MS or NS Browser from within an Java Application is fine. How about having that Browser run within my own Swing enabled Java application within a layout region. So, that it seems as a seamless integrated approach rather run seperate window with netscape. I have tried with HTML component of HotJava and ICE Browser but since they do use AWT heavy rather than swing light we get several problems. How would this be most effectively acheived under Windows NT/95? Mon Nov 02 08:22:04 PST 1998 ellers This Question of the Week idea is great! Mine question is, I think, quite important to many developers: I want to make my program available for sale but I need it to be easily packaged and runnable by end-users; This is relatively easy to do in other programming languages - how can it be done in Java? Mon Nov 02 12:15:03 PST 1998 wlprice I was looking for a way to determine screen parameters in a Java Application at runtime. A programmer could use the Runtime class to recognize each platform and write a native method to get the information, but it would be a pain to do and would probably miss some platforms (goodbye portability). This type of information is often very valuable, and it would be nice to have it easily accessible. This is the solution , but the minor variation was I used a bat file to launch the browser . But this gave me a constraint that the Browser exe file should be in the path of system refering to Win 95/NT. If I want to run more than one application one after other or at a time. Wed Nov 04 20:42:35 PST 1998 mwhig How can I implement an image button in Java? By an image button I mean a Java Button with an icon/image as its label instead of a String. Fri Nov 06 13:11:55 PST 1998 kriff Under NT, you still need to use 'start' for it to work properly (use "cmd /c start <url>". Also, you can't use quotes because 'start' interprets it to mean the title you want for the DOS window, not as a command. THE INFORMATION PROVIDED IN THE JAVA DEVELOPER'S CONNECTION IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR, AND NON-INFRINGEMENT. BY USE OF THE INFORMATION YOU AGREE THAT NEITHER SUN MICROSYSTEMS, INC. NOR ITS LICENSORS WILL BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF SUN OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. THIS INFORMATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. MAY MAKE IMPROVEMENTS AND OTHER CHANGES IN THE PRODUCTS AND THE PROGRAMS DESCRIBED HEREIN AT ANY TIME WITHOUT NOTICE.