Getting KDC ticket with Java older than 1.4

Is it possible?

I did not receive any answer about my question. But I already found a solution.
Thanks

Similar Messages

  • How to get php content with java ??

    i have made a php file what will display a number,
    here's a example
    <?php
    if ($action == "answer"){
    echo "18274926";
    ?>
    no i want to get the number with java
    so here's my java code
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }if you change the url ro a .html file it displays the code correctly(source),
    but when trying to get the content of a php file (the number)
    it says that there is no content from the php file
    yhe source of the original php file what's in the code can be found at
    www.gamer.mineurwar.nl/net/javachallenge.txt

    The 'content' is generated dynamically by a PHP script so the "content lenght" can't be known in advance by the server. For this reason connection.getContentLenght() returns -1; it doesn't mean that there is no content, only that it can't be known how much there will be.
    To solve the issue, remove the if statement from around the while-loop:// if (lengteinhoud > 0) { DELETE THIS LINE
    InputStream in = urlconnection.getInputStream();
    while ((teken = in.read()) != -1) {
        System.out.print((char) teken);
    // } and this too

  • How i get hardware info with Java Applet

    Hello Everybody.
    first I am sorry for my english. This my first topic. I am a php developer and learning Java. I am developing a Java Applet.
    Can i get client hardware info with Java Applet
    Ýf i can How i do get hardware info with Java Applet.
    I need sample code or documentation.
    Thanx.

    TrojanMyth wrote:
    Hello;
    Can i get hardware info with Java ?? Have not a know people ?Applets are restricted, unless, as already noted, they are signed and accepted by the user. See
    http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
    http://java.sun.com/docs/books/tutorial/deployment/applet/properties.html
    In general, since Java is designed to run on multiple operating systems and machine architectures it does not provide much access to the underlying hardware. As mentioned, you can access the os via methods in the java.lang.ProcessBuilder and Runtime classes.

  • Possible to Get Database backup with java program

    Hello
    Is it possible to Get or Create Database Backup on runtime with java program using some sql statements
    How could i do that
    '

    Cross posted and multi-posted.
    Hey jackass why don't you look where I already answered this question.
    http://forum.java.sun.com/thread.jspa?threadID=654902&messageID=3849575

  • Get html data with java

    Ok say I want to get some kind of data from a html page? How could it be done? Is this possible with java, or do I have to use some kind of scripting language?

    It looks like what you might be looking for is a method of getting HTTP, not HTML, data. HTML is simply text and can therefore be retrieved any way that a File could be retrieved (using a FileReader/FileWriter). HTTP, on the other hand, is the protocol that we use the most when viewing websites.
    If you're looking to make HTTP request, you may want to look into something like java.net.HttpURLConnection. Try searching these forums for HTTP, not html.

  • How to get applets running with Java Plug-in on Win but also on Mac OS X???

    I've converted to the use of Java Plug-in for my applets, but I need to have those same applets executable from browsers on Mac OS X platform. Surely this has been done, but I don't see how. The browsers I've tried on Mac OS X (Netscape, IE) don't seem to recognize the <OBJECT> tag used for the java plug-in. I've seen no news about the Java plug-in being ported to Macs. How can one get the same applet to run with the Java plug-in on Windows browsers, and also to run with at least one of the common browsers on Mac OS X? Any help would be SO much appreciated!

    Those ten dukes look good to me. But the passing of fifteen months has me thinking you've probably moved on. In any case, here's my effort.
    I've been through a trial trying to get my applet, developed with 1.4.1_03, to run on my Mac OS X v.10.2.6 in multiple browsers. I'm posting my results here. Comments and feedback are welcome.
    JVM support for 1.4.1 is limited to the Safari browser. All other browsers running in Mac OS X that I've tried ( Camino, Opera, Internet Explorer, Mozilla ) are using the 1.3.1 plugin. According to a bug report by Mozilla on this topic ( see Bugzilla Bug # 197813 http://bugzilla.mozilla.org/show_bug.cgi?id=197813 )
    with the release of Apple's version of Sun's Java 1.4.1 the applet programming model has changed, and only Safari has adapted with this change. Other browsers, according to the report, could not because of a lack of documentation. The use of the MRJCarbon plugin offered by Mozilla (here - http://www.mozilla.org/oji/MRJPluginCarbon.html) only allows Mozilla to use the J 1.3.1. And I have not found any information on the Microsoft site about how to get IE 5.2 to recognize the newer version of Java.
    Regarding the use of the OBJECT tag in Safari, it is a matter of debate. A current post on this topic exists in the Applet Development forum:
    http://forum.java.sun.com/thread.jsp?forum=421&thread=441002
    In my experience, I have not been able to determine that Safari v1.0 recognizes the OBJECT tag. My experience is that the APPLET tag is required to run applets in Safari. The Bugzilla report echoes the problem with the BadMagicNumber error that can arise in Safari. Nonetheless, I enjoy Safari and I enjoy Mac OS X.

  • Is it at all possible to get mountain lion with an older MacBook?

    I have a mid-2007 MacBook with upgraded RAM to 4GB and sufficient hard disk space. 
    The App store won't even let me download Mountain Lion (even though my computer meets the basic specs), and Lion isn't avail. either.  WHat other specs does my computer not meet to upgrade to Mountain Lion??   Will I forever be stuck with SnowLeopard?  It is really unfair that Apple won't even continue making software patches for people with older machines who can't get the latest OSx upgrade.  Not every Apple owner can afford to by a new notebook every 2 years.  Stop being so greedy Apple.....

    There is a min requirement on the machine itself. 
    See this link:
    http://www.tuaw.com/2012/02/16/mountain-lion-drops-support-for-several-older-mac -models/
    If you really want to upgrade away from Snow Leopard, you can call Apple to buy the Lion usb.
    In my opinion, the ONLY reason that I upgraded to Lion is the new File Vault (I have a Macbook 2008).  If you don't use file vault I don't see a reason to upgrade to Lion because you are not able to use most of the feature that it offers anyway, such Air Drop or Improved mouse touch detection.
    I don't think for my Macbook 2008 ( or your Macbook 2007), Lion is that great of an upgrade : )

  • I can't get Safari work with Java 7 version 20 any suggestions?

    I can't get the newest version of Java to work with Safari 6.02.   It doesn't recognize it .  Works fine with Firefox.

    If you have Java 7u13 installed in your system, but it isn't working with Safari, you will want to ensure the plugin is properly enabled.
    1.  Under "System Preferences...", you will want to open the Java preferences pane (which will open a new window).  Under the Security tab of the Java prefences pane, ensure "Enable Java content in the browser" is checked.  This will allow Java web content to be used globally (if Java works under Firefox, this is probably already checked).
    2.  Open Safari's Preferences.  Under Security there are four checkboxes grouped under the label "Web content:".  One of them is Java.  Ensure it is checked.
    Be aware that enabling Java in the browser does open you up to any Java vulnerabilities.  Best practices are to only enable Java when you need it, and disable it otherwise.

  • Multi Lingual String not getting displayed properly with Java 1.5.4

    Hi,
    I have a strange problem and i think the problem is due to java 1.5.4.
    Problem is:
    My application was previously deployed on weblogic6.1 server and jdk used was 1.3.1
    After i migrated my application to weblogic 9.2 and started using jdk 1.5.4, i am not able to correctly view the data which is stored in different languages on browser.
    Some more details:
    OS - Linux.
    Database - Informix 9.2
    Intresting part is :
    If i enter a new multi lingual string from my application (deployed on WLS 9.2 with JDK 1.5.4) and store it in database, and then try to retreive it, it is displayed correctly.
    Issue arises only when the multi lingual string created and stored in database from my old application (deployed on WLS 6.1 with JDK 1.3.1) is retrieved and displayed in the new application (WLS 9.2 with JDK 1.5.4).
    Hope my issue is clear and if any one has any clue as to how to solve this issue. Kindly help

    One thread is enough.
    http://forum.java.sun.com/thread.jspa?messageID=9651015

  • Working with Dates older than 1900-01-01

    I'm curious about working with old historical dates.  Crystal doesn't seem to like working with them as a valid date as far as displaying and working with them in formulas.
    For simplicity, instead of using a database I tried a simple one cell input Excel spreadsheet with a combination of dates in it, some prior to 1900-01-01.  The newer dates display fine, the older dates (any 1899 and before) display as blank. As well, they don't return expected results when used in formulas doing < or > comparisons to more current dates.  
    What's the best work-around if a person should need to create a reports with historical data containing pre-1900 dates?
    Thanks!  Russ.

    Hi Russ,
    To clarify,  is this issue happening with Excel as a datasource or within Crystal Reports as well?  I've found articles specific to Excel where it considers 1900-01-01 as a leap year. 
    I have also tested this in Crystal Reports by creating a formula:
    date(1900/01/01)
    Regards,
    Wallie
    Edited by: Wallie Cheng on Sep 24, 2008 1:15 AM
    Actually my syntax was incorrect.  Crystal Reports displays the date correctly with the date formatted as 1900,1,1

  • To Print Ticket with java

    Hi All,
    I have developed Bus Travel Booking system.now i want to print Ticket for that.
    Condition is tht in 1 A4 size paper 2 or 3 tickets should be printed.
    i dont know how to started for tht.
    pls help me it's urgent..
    any link,document which might be helpful.
    Any help would be appreciated..
    Thanks in advance.

    What exactly do you want to print to the Ticket? ... contents of a text file,
    or what did you have in mind?

  • Voice Memos older than last Sync date not copying from iPhone to PC after sync, even though "Include voice memos" is checked

    I am trying to copy over my voice memos from my iPhone to my PC. I have "Include voice memos" checked under the Music tab.
    I had an issue with voice memos being duplicated on my iPhone after a sync (I got two versions of each memo on my phone for some reason), so after deleting the extra copies on my phone I deleted all voice memos from within iTunes and chose the option to move the files to the Recycle Bin. So the Music\iTunes\Itunes Music\Voice Memos folder is empty, and there are no voice memos showing up in iTunes.
    But now when I sync, it isn't copying over the older memos that are on my iPhone to my computer. If I record a new voice memo then that memo transfers successfully, but any voice memos with a recording date older than my last sync date do not transfer.
    How can I get these older voice memos (with dates older than my last sync date) transferred over from my phone onto my PC?

    Does anyone know of a way that I can access the voice memos with dates older than my last sync date...?

  • How i can start working with Java?

    Right now i am having only 8 months of exp in ABAP. can any one help me out to start working with Java specially for Netweaver Purpose

    It is great if you can get yourself familiar with java syntax, as is the case with any new langauage. However, the worst thing you can do is just code java in a top down approach. If you are not familiarizing yourself with OO concepts and best practices, then you are going to miss two important benefits that you will get from using OO programming - Reusability and flexibility in the frameworks that you develop (leveraging design patterns).
    These benefits will also be directly obtainable when you use ABAP objects.
    I am working in the opposite direction at the moment. I have some java experience, and I am starting to learn ABAP. I have used ABAP objects in my first project, and it was actually much better than I thought it would to be.
    Java and OO programming will be an ongoing learning experience. You will not be an expert for quite some time. I do not consider myself to be an expert by any means, and I've be studying OO and java for a few years.
    There is a fantastic book that explains OO concepts clearly, in much easier terms than the Gof "Design Patterns" book:
    Java Design: Objects, UML, and Process by Kirk Knoernschild
    You can read a few chapters at www.kirkk.com. (Use the JOUP link).
    Hope this helps you.
    - Brendan

  • Managing gigabytes with Java garbage collection ?

    I am at the early stage of Java development project (kind of a memory based database index server) which easily involves managing 500.000+ very large Java objects (array based as this is the only way to use memory efficiently in Java) + a couple of millions of smaller objects.
    Most of the objects are long lived but some (query) operations involve temporary creation of several 100MB+ sized objects. The app should run on Windows or Unix\Linux and will probably require/use up to 1-2GB of RAM (max possible on typical 32bit OS). At best it should be able to run under the JDK1.3+ hotspot VM.
    I am concerned that the garbage collection by the VM may be a problem. While the app does not have real-time requirements, most (query) operations ought to complete in less than a second. Frequent complete GC freezes of say 5+ seconds would not be acceptable.
    Anyone with experience on this ? Do you expect that I will get a problem with Java garbage collection or am I too concerned about this ?

    Anyone with experience on this ? Do you expect that I
    will get a problem with Java garbage collection or am
    I too concerned about this ?With an application that size, yes, you will run into problems, unless you are very careful.
    Not being familiar with your applications memory allocation and access patterns, it's hard to be more specific. Perhaps something like 1.4.1's incremental GC will help in your case, but simply getting the VM to allocate and manage 2GB of memory will be a challenge.
    Caveat emptor..
    (See if you can split your application into smaller applications that can be run in different virtual machines; as long as each application's virtual machine doesn't grow too large, the GC problem will be manageable, and more importantly, you'll be able to use more than 2GB of memory comfortably).

  • Writing Illustrator scripts with Java not javascript

    Hi all, I am an experienced Java developer, I want to ask about can I write scripts in Adobe Illustrator with Java rather than javascript, I mean Did Adobe make Java API for Illustrator?
    Thanks

    Hello,
    1) no, but c++, called plugin API ( Java Native Interface ? )
    2) maybe ask here for plain Java binding : http://scriptographer.org/news/a-new-release/  (written in java) ?
    chris

Maybe you are looking for