EasyIn.java - Who's the author?

Hi people, newbie poster so please excuse any dumbness...
A couple of years ago I was given a EasyIn.java file as part of a practical Introducing me to Java. For the last couple of years, whenever I've needed some simple input from the command line, i've used this same class.
However, I'm now about to submit a Major Software Project for my penultimate year and it has just struck me that I don't know who the author of the class is? There are no comments in the file and a google search has yielded no result.
So I ask you dear people if anyone knows the author so that I may cite the use of their code in my report?
Regards
J

That seems to be a different class to the one I have:
import java.io.*;
public abstract class EasyIn {
     public static String getString() {
          boolean ok = false;
          String s = null;
          while (!ok) {
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    s = s.trim();
                    ok = true;
               catch (IOException e)
                    System.out.println(e.getMessage());
          return s;
     public static int getInt()
          int i = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    i = Integer.parseInt(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter an integer");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return i;
     public static byte getByte()
          byte i = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    i = Byte.parseByte(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter a byte");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return i;
     public static short getShort()
          short i = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    i = Short.parseShort(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter a short integer");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return i;
     public static long getLong()
          long l = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    l = Long.parseLong(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter a long integer");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return l;
     public static double getDouble()
          double d = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    d = Double.parseDouble(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter a decimal number");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return d;
     public static float getFloat()
          float f = 0;
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    f = Float.parseFloat(s.trim());
                    ok = true;
               catch (NumberFormatException e)
                    System.out.println("Make sure you enter a decimal number");
               catch (IOException e)
                    System.out.println(e.getMessage());
          return f;
     public static char getChar()
          char c = ' ';
          boolean ok = false;
          String s;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    s = new String(b);
                    if (s.trim().length() != 1)
                         System.out
                                   .println("Make sure you enter a single character");
                    else
                         c = s.trim().charAt(0);
                         ok = true;
               catch (IOException e)
                    System.out.println(e.getMessage());
          return c;
     public static void pause()
          boolean ok = false;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.in.read(b);
                    ok = true;
               catch (IOException e)
                    System.out.println(e.getMessage());
     public static void pause(String messageIn)
          boolean ok = false;
          while (!ok)
               byte[] b = new byte[512];
               try
                    System.out.print(messageIn);
                    System.in.read(b);
                    ok = true;
               catch (IOException e)
                    System.out.println(e.getMessage());
}

Similar Messages

  • Who is the author of java.lang.Object

    The biggest mystery for me in Java still exists as to who really coded the mother of all classes java.lang.Object.
    Here�s what the source of it says in JavaDocs
    * Class <code>Object</code> is the root of the class hierarchy.
    * Every class has <code>Object</code> as a superclass. All objects,
    * including arrays, implement the methods of this class.
    * @author unascribed
    * @version 1.61, 01/23/03
    * @see java.lang.Class
    * @since JDK1.0
    public class Object {

    See the annotation @author above, it says �unascribed� which means unknown. Any one who can solve this mystery for me and come up with the real author of this jni implementation class called �Object�
    I mean the first one to write java.lang.Object. Please help me...

    Please don't cross-post

  • Now that we have Java - who helps the end users?

    Now that Oracle provides the JRE, we get to an interesting question: where do the non-technical people go for help with JRE installs and configurations?
    At first blush, I'd almost feel we need a separate forum to help keep them in a 'friendly' place. We don't wanna be "Internet Help Desk" as depicted by "Three Dead Trolls in a Baggie" (http://www.deadtroll.com/) comedy group (http://www.youtube.com/watch?v=1LLTsSnGWMI)
    Got one over in "Database - Install" (Re: java problem and I'm thinking this is going to be the tip of the iceberg. The info at http://www.java.com/en/download/help/index.xml will be useful
    Edited by: Hans Forbrich on Apr 2, 2010 9:03 PM

    g.myers wrote:
    Not sure whether you were referring to the software or the content there.
    Looks like another Jive implementation, but I don't think anyone here wants to think about an OTN forums upgrade anytime soon.I had totally forgotten that Sun had their own forums - also using Jive - to handle Sun products. That is the one presented.
    But the real issue that caused my question: Where do the end users go who want help on the Sun Java download that is required for so many applets?
    And the answer seems to be the JRE forum at http://forums.sun.com/forum.jspa?forumID=32
    Don't know where you are coming from with the 'upgrade to OTN' comment. I do not think anyone is suggesting an upgrade. My 'fantastic' was a response to the answer to my original question. My 'wow' was a response to the organization and the detail in that community. It's changed since the last time I looked, which was quite some time ago.

  • Who is the ultimate authority on genre?

    Does anyone know...
    Who is the ultimate authority on deciding a song's genre?
    I ask this because I have discovered that Klezmer is not really an iTunes genre. Sometimes klezmer tunes are shown as "folk" and sometimes they are shown as "world." I assume that it it not anyone at iTunes who made these decisions. Is it someone at big record companies? Do the record stores drive the genre-defining system? Why wouldn't the Klezmatics be defined as Klezmer?
    Thanks.

    The "ultimate" authority is you.
    If the Genre (or anything else) is incorrect, you can change it to what you want.
    But Diane is correct in that Gracenote is where the info is from and the labels can add/edit info but anyone is free to add info.
    Gracenote does not describe how they decide what is the "correct" info.
    See #5 here -> http://www.gracenote.com/company_info/FAQ/FAQs/

  • Problem with EasyIn.java

    Well i've found EasyIn.java but when i try to compile my HelloWorld.java program the following error message occurs, can anyone explain this?
    HelloWorld.java :6: cannot resolve symbol
    symbol: variable EasyIn
    location: class HelloWorld
    EasyIn.pause ();
    ^
    1 error
    Thankyou in advance to anyone who can help

    English translation in bold.
    Well i've found EasyIn.java but when i try to compile
    my HelloWorld.java program the following error message
    occurs, can anyone explain this?
    HelloWorld.java :6: cannot resolve symbol
    On line 6 of the file "HelloWorld.java", I found a symbol that I do not recognize.
    symbol: variable EasyIn
    The symbol that I could not recognize at the above location is a variable called "EasyIn".
    location: class HelloWorld
    The location where that variable was used is found in the class "HellowWorld"
    EasyIn.pause ();
    ^
    Here is the line I'm having trouble with. The ^ points to the start of my worries.
    >
    1 error
    By the way, here is a count of how many errors I've found in your code.
    Basically, the compiler is complaining that it could not find the EasyIn class. Make sure you've compiled this class, and your classpath included it's location.

  • Some Java applets do not work after silent installation, solved by toggling "Enable Java content in the browser" - Why?

    We have about 1,800 workstations running Windows 7 (both 32-bit and 64-bit) running various versions of the Java JRE from 6 update 32 through 7 update 51.  Most are on 6 update 45.  We would like to standardize on Java 7 update 51 (32-bit) and get everyone updated to that version for security reasons.
    For the past two weeks, we have been having trouble with our installation pre-pilot.  What we are seeing is that our procedure successfully closes any open Internet Explorer windows and Java-related processes, uninstalls all old versions of the Java JRE, and then claims to have successfully installed Java 7 update 51.  The Java Control panel works.  We can even take Internet Explorer to Verify Java Version or Java Tester - What Version of Java Are You Running? and confirm that the Java applets on those sites are loading (though the latter only works after adding the site to the exceptions site list); however, when testers try to access our Kronos Workforce Central 6.3.10 system, the Java applets used by that system do not load.
    We have tried the following things, none of which worked:
    Clear Internet Explorer browser cache and cookies.
    Clear the local Java cache.
    Reboot the computer.
    Reset Internet Explorer settings, including personal settings.
    The one thing which does work is going into the Java Control Panel, going to the Security tab, unchecking "Enable Java content in the browser", pressing Apply, pressing OK on the pop-up window, checking the "Enable Java content in the browser" box again, pressing OK, pressing OK on the pop-up window, and then restarting Internet Explorer.  It is only after this point that all Java applets, including the ones used by Kronos Workforce Central 6.3.10, work.
    What I need to know is how I can automate the procedure of reinitializing the "Enable Java content in the browser" checkbox after installation or am I doing something wrong or missing a step in the automated installation that is causing this to happen?
    We are using Microsoft SCCM 2007 R3 to accomplish this upgrade, and everything is being run on the client machine using the SYSTEM account.  First, the PowerShell script "javaclean.ps1" is run, with part of the command-line process changing the PowerShell script execution policy to Bypass.  This script handles the closing of Java-dependent applications and Java processes and uninstalls old Java versions.
    javaclean.ps1:
    #Find all Java products excluding the auto updater which actually gets uninstalled when the main install is removed.
    write-host "Searching for all installed Java versions" -ForegroundColor Yellow
    [array]$javas=Get-WmiObject -query "select * from win32_Product where (Name like 'Java %' or Name like 'Java(TM)%' or Name like 'J2SE%') and Name <> 'Java Auto Updater'"
    if ($javas.count -gt 0)
        write-host "Java is already Installed" -ForegroundColor Yellow
        #Get all the Java processes and kill them. If java is running and the processes aren't killed then this script will invoke a sudden reboot.
        [array]$processes=Get-Process -Name "Java*" #-erroraction silentlycontinue
        $processes += Get-Process -Name "iexplore" #-erroraction silentlycontinue
        $processes += Get-Process -Name "firefox" #-erroraction silentlycontinue
        $processes += Get-Process -Name "chrome" #-erroraction silentlycontinue
        $processes += Get-Process -Name "jqs" #-erroraction silentlycontinue
        $processes += Get-Process -Name "jusched" #-erroraction silentlycontinue
        $processes += Get-Process -Name "jp2launcher" #-erroraction silentlycontinue
        if ($processes.Count -gt 0)
            foreach ($myprocess in $processes)
                $myprocess.kill()
        #Loop through the installed Java products.
        foreach($java in $javas){
            write-host "Uninstalling "$java.name -ForegroundColor Yellow
            $java.Uninstall()
    After this script is complete, SCCM calls a the VBS script "install.vbs" to perform the actual installation of Java JRE 7 update 51.
    install.vbs
    '* Script: Install JRE 7 routine
    '* Date:   3/14/14
    '* Author: [REDACTED]
    '* Rev:    1.0
    '* Notes: 
    '/// Common
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objWshShell = CreateObject("WScript.Shell")
    ' Get system architecture
    Dim colSys : Set colSys = GetObject("WinMGMTS://").ExecQuery("SELECT AddressWidth FROM Win32_Processor",, 48)
    Dim objSys
    For Each objSys In colSys
        If objSys.AddressWidth = 64 Then bolIs64Bit = True
    Next
    ' Get operating system
    Dim colOS : Set colOS = GetObject("WinMGMTS://").ExecQuery ("Select * from Win32_OperatingSystem",,48)
    Dim objOS
    For Each objOS In colOS
        If Left(objOS.caption, 20) = "Microsoft Windows 8 " Then
            bolIsWin8 = True
            WScript.Echo "win8"
        End If
        If Left(objOS.caption, 22) = "Microsoft Windows 8.1 " Then
            bolIsWin81 = True
            WScript.Echo "win81"
        End    If
    Next
    ' Set 32 bit program files directory
    If bolIs64Bit = True Then
        strPFILES = "Program Files (x86)"
        strSYSDIR = "SysWOW64"
        Else strPFILES = "Program Files"
        strSYSDIR = "System32"
    End If       
    ' Set windows directory
    strWIN = objWshShell.ExpandEnvironmentStrings("%windir%")
    ' Set the current directory
    strCurrentDir = objFSO.GetParentFolderName(Wscript.ScriptFullName)
    ' Set computer name
    strCompName = objWshShell.ExpandEnvironmentStrings("%computername%")
    '/// Main script
        '/// Install via .msi & capture exit code
        'intExitCode = objWshShell.Run("msiexec.exe /i """ & strCurrentDir & "\package.msi""" & " TRANSFORMS=""" & strCurrentDir & _
        '    "\transform.mst"" ALLUSERS=1 Reboot=ReallySuppress /qn", 8, True)
        'wscript.quit(intExitCode)
        '****RUN COMMANDS HERE****
        ' Create folder structure if it doesn't exist already   
        strFullPath = "c:\Windows\Sun\Java\Deployment" '
        ' How many levels are there in the path?
        nLevel = 0
        strParentPath = strFullPath
        Do Until strParentPath = ""
            strParentPath = objFSO.GetParentFolderName(strParentPath)
            nLevel = nLevel + 1
        Loop
        For iLevel = 1 To nLevel
            ' Figure out path for directory at level iLevel
            strParentPath = strFullPath
            For j = 1 To nLevel - iLevel
                strParentPath = objFSO.GetParentFolderName(strParentPath)
              Next
        ' Does this directory exist? If not, create it.
            If objFSO.FolderExists(strParentPath) = False Then
                Set newFolder = objFSO.CreateFolder(strParentPath)
            End If
        Next
        ' Kill running processes
        objWshShell.Run "taskkill /F /IM iexplore.exe", 8, True
        objWshShell.Run "taskkill /F /IM firefox.exe", 8, True
        objWshShell.Run "taskkill /F /IM chrome.exe", 8, True
        objWshShell.Run "taskkill /F /IM javaw.exe", 8, True
        objWshShell.Run "taskkill /F /IM java.exe", 8, True
        objWshShell.Run "taskkill /F /IM jqs.exe", 8, True
        objWshShell.Run "taskkill /F /IM jusched.exe", 8, True
        ' Copy deployment files
        objFSO.CopyFile strCurrentDir & "\deployment.config", "c:\Windows\Sun\Java\Deployment\", True
        objFSO.CopyFile strCurrentDir & "\deployment.properties", "c:\Windows\Sun\Java\Deployment\", True
        ' Disable UAC
    '    If bolIsWin8 Or bolIsWin81 = True Then
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f", 8, True
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f", 8, True
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f", 8, True
    '    End If
        ' Install application
        intExitCode = objWshShell.Run("msiexec.exe /i """ & strCurrentDir & "\jre1.7.0_51.msi"" IEXPLORER=1 AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0 WEB_JAVA=1 ALLUSERS=1 Reboot=ReallySuppress /qn", 8, True)
        ' Enable UAC
    '    If bolIsWin8 Or bolIsWin81 = True Then
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 1 /f", 8, True
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f", 8, True
    '        objWshShell.Run "reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 5 /f", 8, True
    '    End If   
        wscript.quit(intExitCode)
        '/// Install via .exe on network
        'objWshShell.Run """" & strCurrentDir & "\Setup.exe"" -s -sms -f1""" & strCurrentDir & _
        '    "\setup.iss"" -f2""" & strWIN & "\Temp\Install-app.txt""", 8, True
        ' Need to turn off the open file security warning first
        Set objEnv = objWshShell.Environment("PROCESS")
        objEnv("SEE_MASK_NOZONECHECKS") = 1
    '    intExitCode = objWshShell.Run("""" & strCurrentDir & "\jre-7u45-windows-i586.exe"" /s /v""/norestart " & _
    '        "TRANSFORMS=""" & strCurrentDir & "\Tribe-jre7.mst""""", 8, True)
    '    WScript.Quit(intExitCode)
        '****RUN COMMANDS HERE****
        ' Then turn it back on
        objEnv.Remove("SEE_MASK_NOZONECHECKS")
    '/// Additional functions
    Help on this issue would be much appreciated!

    It turns out that this is actually a problem with Kronos Workforce Central.  We had the "site.java.plugin.CLSID.familyVersion" setting in that application set to "clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA", which is the Java CLSID for Java 6.  After updating this value to "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" (the Java universal CLSID), this problem did not occur upon the automatic upgrade of Java.
    We have both Java 6 and Java 7 in our environment, and did during our Kronos implementation, so I don't know why we were using the Java 6 CLSID in the first place.
    Case closed!

  • HT5213 I have two books published to the iBookstore via Blurb. Unfortunately, they just used my first name on the second book. It is like it is by a different author to the first book. -The two books are not linked. Is there anyway I can edit the author's

    Hello. I have just joined this community and would be grateful for advice on editing my name submitted to the iBookstore by Blurb on one of my books. I would like to have both of my books with the same author's name. Is it possible? Thank you.

    Thank you, Tom. I did contact Blurb support back in March and was told the following:
    "We are not able to change the specifications of how Apple Itunes show the author's name on their site.
    Apple always have strict specifications of how they set up the Ebook on their site.
    This issue can only be solved by contacting Apply and they will not change the name of the site".
    I didn't know how or where to contact Apple at that time and gave up. I am resurrecting the issue now as I have seen I have sold some books and would like the people who bought them to learn of my other book.
    I am grateful to both Blurb and Apple for making my books possible, but I would like to fix this issue. I will contact Blurb again.
    Thanks for your support.

  • Who needs the JavaFX runtime redistributable? Please "Stand up and shout!"

    With the 1.2 release JavaFX gains more momentum and more attractivity. Also for the "classic" desktop application sector. It has the ability to give Java apps all the eye candy and smoothness in operation that many end-users pretend/believe "Java does not have".
    My only problem (as a developer and ISV!) is: I cannot build and sell applications for my customers with JavaFX!
    ... at least not in the way most of my customers would prefer:
    - get the software as one single package,
    - put it in/on the PC
    - and USE it. Period.
    There are many (very many!!!) customers (end-users!) who easily get very confused by:
    - having to install "something called JRE"(1) on their box
    - having to go to a certain website to get that JRE from
    - or, beeing confronted with the web start screens and security warnings.
    So, I would say, for an ISV distribution as a single package that starts "out of the box" is maybe even more important than the rather "advanced" or "sophisticated" webstart. Actually, for many customers who do not have a technical background, beeing confronted with the mentioned technical details quickly becomes a real show-stopper. Sorry, but that's the way many people work and think.
    That's not good for me. That's not good for all the other ISVs. And that's not good for Java and Sun, either, I think.
    And, as an entrepreneur, I would not like falling into what in German would be called "betting on the wrong horse".
    But, if I understand the license correctly, that is exactly what I cannot do: Bundle my applications with a JRE & JavaFX runtime, just as I would be allowed to do with the JRE only. So there is no way of an one-package offline distribution and installation. And thus no way to reach a significant amount of users - and customers!
    So, my questions in short are:
    1) Is there someone at the forum, who shares my problems or fears?
    2) Is there someone from Sun at the forum who could tell me something about what to do with JavaFX in that case? Is there something I have forgotten, or is there simply no way. Or are there future plannings on changing the license in a less restrictive way? If so: what is the schedule and what could the changes look like.
    Best regards,
    Robert
    (1) Please don't get my irony wrong - I just frequently meet end-users who do not know much or even anything about Java or an JRE - sad but true ...
    Edited by: aeonium on Jul 30, 2009 2:41 PM
    Edited by: aeonium on Jul 30, 2009 2:49 PM
    Edited by: aeonium on Jul 30, 2009 2:54 PM

    About 1): Yes, there are several questions about licensing and being able to distribute JavaFX applications offline, on computers not connected to Internet, among other requirements.
    I would say your requirement are reasonable. I make for my work an install program deploying a JRE along a complete Java application, and for the user, he runs the application like any Windows application, no need to know it is Java based. That's nice and user friendly.

  • Java Programming @ SAP - the poor cousin?

    Hi!
    Recently I' ve started a kind of poll in the Java forums asking if someone knew any enhancement possibilities for java-side development at SAP mentioning the ABAP customer exits, BADIs, customer includes and enhancement spots as example.
    Guess how many answer I received - from WDJ, Java Programming, NWDI and NW Java from: None! All the gurus who usually bubble over with wisdom remained wondrous silent. I also run over help pages searching for some hints regarding this - in my opinion fundamental - questions, with the same result.
    Has really nobody at SAP spent a thought about one of the most precious features SAP offers its customers - the possibility to enhance delivered standard-programs and thereby adapt them to their needs without modification?
    How are we as Java programmers then supposed to stand the mistrustful glances of our ABAP collegues who wonder why there has been so much noise about this Java thing in the recent years. Thinking about the disadvantages a developer working with Java at SAP has to bear compared to his ABAP collegue - no direct data access, no comfortable debugging possibilities, lots of standalone tools with strange UIs (SDM Remote GUI, Visual Admin - only to name the least glorious ones - he to manage and - last, not least - no chance to enhance SAP Standard programs modification free I have to agree upon one ABAPers opinion on Java: "The hype is over!".
    Regards from a very pessimistic Java Developer
    Thomas
    PS: Does anybody know a way to unbureaucraticly swap a Java certification against an ABAP one?

    I get the question - should I do my development in ABAP or Java - quite often. My answer has become "It Depends."  I getting pretty good at those ambiguous consulting answers, aren't I.
    In all seriousness I really do think the answer depends upon several things.  As a company or development group you should analyze the skills that you already have in house.  As you have seen the two development environments are quite close.  The advantages of one over the other will continue to vary over time.  ABAP will add nice features from Java and vise versa.  In the end it is more important that companies leverage their skill sets and existing infrastructure (Software Lifecycle Landscape) to their maximum. 
    If you are already a java shop then it makes sense to continue down that development path because your developers will still be very efficient even if they have to access ERP and other SAP application logic and data via RFC or Web Services. 
    On the other hand, ABAP certainly isn't as dead as some people claimed it would be by now. Thanks to Web Services ABAP has more flexibility than ever before.  It isn't nearly the closed box that it used to be.  Also the workbench team isn't going to stop innovating either. 
    The next question I get is what does SAP do internally when deciding on a language to use.  To a large extent they use the same criteria - what existing skill sets do I have to work with.  They also look at where the data is located. 
    That means products like Portal aren't about to change from Java to ABAP.  On the other hand ERP suite development is still heavily ABAP.  The new UIs coming from ERP will primarily be done in Web Dynpro ABAP. 
    Even in some newer products that haven't been released yet - the UI was done in Java or Visual Composer and the backend business logic was done in ABAP. It is all about taking advantage of the unique strengths of each environment and the skill sets you have in each.
    In the end I don't think Java is the poor cousin any more than ABAP is going to die.  Look at NetWeaver CE and the huge investment SAP has made on top of Java Development there.  At the same time our investment in Java has not come at the cost of the ABAP environment.  Innovations will continue to take place there as well.  I can assure you that within SAP it is the hope and goal to have two top notch development environments within NetWeaver.
    Now let me share a little story with you.  My background is obviously ABAP and I doubt I will ever lose my particular passion for the environment.  At the same time I have done a fair bit of NetWeaver Java development in the last year and half or so.  I'm not a super deep expert, but I can hold my own. 
    I recently had a requirement to build an MDM Application.  I only had two days in which to build it.  My choices were to use the Java API or the ABAP API.  They are quite similar and both meet all my interface requirements.  I was building a Web Dynpro UI, so the end user wouldn't be able to tell the difference.  Interfacing capabilities being the same and UI output being identical - my decision came down to the environment where I personally could be most efficient.  I could have completed the project in either environment.  But because I knew the ABAP Programming Environment (you know the stuff that goes beyond the basic syntax - the real knowledge that lets you squeeze every last drop of performance out of an application) so well I personally could build the best application in the shorter time in ABAP. 
    Now someone with a different background might well have taken the Java path and done just as well.  This is the advantage that SAP provides by continuing to support both ABAP and Java development.  Does every feature and function of both environements line up exactly - of course not.  I'm sure they never will.  But do these differences keep experts in either environment from being able to make any application do amazing things - certainly not.  Personally I feel less constrained in either ABAP or Java today than I have ever felt programming before.

  • LSO: Java errors when using Authoring Environment to check-in eLearning

    Have any users here encountered any of these Java errors when trying to check-in eLearning content to the Master Repository?
    reuseObj is null
    java.lang.NullPointerException: reuseObj is null
         at com.sap.hcm.ls.shared.repository.exchange.DeltaVersionData.<init>(DeltaVersionData.java:62)
         at com.sap.hcm.ls.shared.repository.exchange.CopyMan.checkIn(CopyMan.java:160)
         at com.sap.hcm.ls.shared.repository.exchange.Publisher.checkInObjects(Publisher.java:270)
         at com.sap.hcm.ls.las.repository.explorer.wizard.steps.CheckInObjectsStep.workerThread(CheckInObjectsStep.java:85)
         at com.sap.hcm.ls.shared.util.swing.wizardfw.steps.ProgressWizardStep.run(ProgressWizardStep.java:209)
         at java.lang.Thread.run(Unknown Source)
    No semaphore for: /<path>/_groupManProps.txt
    java.io.IOException: No semaphore for: /<path>/_groupManProps.txt
         at com.sap.hcm.ls.shared.repository.control.implicit.ImpVersManager.getAndUpdateNextRevisionNumberForGroup(ImpVersManager.java:920)
         at com.sap.hcm.ls.shared.repository.control.implicit.ImpVersManager.postSpecifyRevisionNumber(ImpVersManager.java:624)
         at com.sap.hcm.ls.shared.repository.exchange.CopyMan.copyProps(CopyMan.java:867)
         at com.sap.hcm.ls.shared.repository.exchange.CopyMan.checkIn(CopyMan.java:227)
         at com.sap.hcm.ls.shared.repository.exchange.Publisher.checkInObjects(Publisher.java:270)
         at com.sap.hcm.ls.las.repository.explorer.wizard.steps.CheckInObjectsStep.workerThread(CheckInObjectsStep.java:85)
         at com.sap.hcm.ls.shared.util.swing.wizardfw.steps.ProgressWizardStep.run(ProgressWizardStep.java:209)
         at java.lang.Thread.run(Thread.java:619)
    Unexpected object state: /<path>/v1/ [rep=http://<path>:80/publishing/LSO_SH1/, type=4, props={status=reserved, type=4, isVersioned=m, pathHash=1855656709}]
    com.sap.hcm.ls.shared.repository.access.ConcurrentIOException: Unexpected object state: /<path>/v1/ [rep=http://<path>:80/publishing/LSO_SH1/, type=4, props={status=reserved, type=4, isVersioned=m, pathHash=1855656709}]
         at com.sap.hcm.ls.shared.repository.exchange.Publisher.announceToPublisherDB(Publisher.java:733)
         at com.sap.hcm.ls.shared.repository.exchange.Publisher.checkInObjects(Publisher.java:288)
         at com.sap.hcm.ls.las.repository.explorer.wizard.steps.CheckInObjectsStep.workerThread(CheckInObjectsStep.java:85)
         at com.sap.hcm.ls.shared.util.swing.wizardfw.steps.ProgressWizardStep.run(ProgressWizardStep.java:209)
         at java.lang.Thread.run(Thread.java:619)
    They each seem to point to some degree or another to using Versioning, but I've gotten those errors whether the "Use Delta Versioning..." checkbox is checked or unchecked.  I do have the standard versioning settings set in the IMG, the standard delivered settings.  And it's referencing the same file, _groupManProps.txt, that doesn't exist in any of the packages I've tried to publish/check-in.  I've tried both AICC and SCORM content and I get the same errors.
    We have an ECC6 system on EHP5, and using Authoring Environment version LSOAE09_0-10006103.
    I'm running the Authoring Environment on a 64-bit Windows 7 PC.
    I've tried to publish/check-in with the following versions of the Java SDK:
    1.4.2 Update 13
    1.4.2 Update 19 (the latest in 1.4.2 with a Windows installer available)
    6 Update 14 (a colleague is using this version successfully with the AE)
    6 Update 23
    Each of those were the 32-bit versions after trying a 64-bit version of one (based on my PC's OS) and getting an unrelated 64-bit error.
    I would appreciate any experience or wisdom any other users here have to share.
    Thanks!
    Jason
    Edited by: jtrain on Nov 22, 2011 9:29 AM

    It was an adjustment we made on our ISA 2006 server. Under
    1. Open Array - Configurarion - General
    2. Select Additional Security Policy - Configure Flood Mitigation
    3. On the Flood Mitigations Tab, there are a number of flood mitigation settings that can be configured.
    The setting we had to adjust is under the "Maximum HTTP requests per minute per IP address (Click on Edit)
    Increase the  "Limit:"  setting. We set it to 1500 which resolved our problem.
    4. Apply the policy and wait for the configuration to be updated on all array members ( may take several minutes)
    Regards,

  • Deploy Java Classes to the Database 2

    Hi,
    I have made a program with JDeveloper, and with the function deploy I can store the code in the Oracle database.
    But now I want to use the loadjava tool.
    I put all the class files in one jar file and used the following command:
    (when I put the .java files in the jar file it works fine, but I want to load the .class files)
    loadjava -user test/test@xx–resolve file.jar
    The following errors I get:
    errors : class test/AnalyzeAccNum
    ORA-29534: referenced object XX.test/QueryManager could not be resolved
    ORA-29545: badly formed class:
    errors : class test/AnalyzeBalNew
    ORA-29534: referenced object XX.test/ReadEB could not be resolved
    ORA-29545: badly formed class:
    errors : class test/AnalyzeBalOld
    ORA-29534: referenced object XX.test/ReadEB could not be resolved
    ORA-29545: badly formed class:
    errors : class test/QueryManager
    ORA-29545: badly formed class:
    errors : class test/ReadEB
    ORA-29534: referenced object XX.test/FetchBankAccountID could not be resolved
    ORA-29545: badly formed class:
    errors : class test/RecognizeAndSaveLine
    ORA-29534: referenced object XX.test/AnalyzeStatementLine could not be resolved
    ORA-29545: badly formed class:
    The following operations failed
    class test/AnalyzeAccNum: resolution
    class test/AnalyzeBalNew: resolution
    class test/AnalyzeBalOld: resolution
    class test/AnalyzeDefLin: resolution
    class test/AnalyzeDesLin: resolution
    class test/AnalyzeDetLin: resolution
    class test/AnalyzePayRef: resolution
    class test/AnalyzeStaNum: resolution
    class test/AnalyzeStatementLine: resolution
    class test/BankCheck: resolution
    class test/FetchBankAccountID: resolution
    class test/FormatLayout: resolution
    class test/FormatLayoutTag: resolution
    class test/InsertInvoiceLine: resolution
    class test/InsertStatement: resolution
    class test/InsertStatementLine: resolution
    class test/ProcessStatementLine: resolution
    class test/QueryManager: resolution
    class test/ReadEB: resolution
    class test/RecognizeAndSaveLine: resolution
    exiting : Failures occurred during processing
    In JDeveloper it works fine, and I changed nothing in de code.
    What am I doing wrong?
    Thanks in advance.

    To make it more simple I made a new java file with only this code:
    package project1;
    public class test {
        public static void test() {
            System.out.println("test");
    }I used the following command to make a class file:
    javac -source 1.3 -target 1.3 test.java
    I used the following command for loadjava:
    loadjava -user test/test@database -resolve -verbose test.class
    this are the errors I get:
    arguments: '-user' 'test/test@database' '-resolve' '-verbose' 'test.class'
    creating : class project1/test
    loading : class project1/test
    resolving: class project1/test
    errors : class project1/test
    ORA-29545: badly formed class:
    The following operations failed
    class project1/test: resolution
    exiting : Failures occurred during processing
    If I do this all in JDeveloper it works fine when i want to deploy the .java file. But when I select the .class to deploy I get this message:
    Invoking loadjava on connection 'database' with arguments:
    -order -resolve -debug -force -thin -verbose
    creating : class project1/test
    loading : class project1/test
    Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
    resolving: class project1/test
    errors : class project1/test
    ORA-29545: badly formed class:
    The following operations failed
    class project1/test: resolution
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:473)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:360)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeployToMostRecent(StoredProcHandler.java:256)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$2.run(StoredProcProfileDt.java:193)
    #### Deployment incomplete. #### Jun 20, 2007 8:51:09 AM
    *** Note ***
    One possibility for the deployment failure is that the target Database may not support JDK version 1.3. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
    Someone who knows what the problem is?
    Message was edited by:
    KdeGraaf

  • Where do I define the author for a topic?

    Need to know how to set or define who the "author" is for the
    project and or topics. Anyone? I'm fairly new to Robohelp and have
    not been find the place to do this. Thanks in advance for any help
    you can provide!

    Hi again Tracy at Cheval
    In your situation, I might suggest you would benefit from
    what I refer to as "poor man's version control". I'll outline
    below:
    Using careful coordination, two or three help authors can
    easily achieve sharing a single RoboHelp project without resorting
    to any type of a third party Source Control system. The key to this
    approach is strict adherence to communication policies!
    Source Control works like a combined traffic cop/librarian.
    It is an automated way to allow collaboration between two or more
    help authors. Here is a hypothetical situation. Three different
    help authors have a need to "share" authoring responsibilities.
    I'll refer to them as Mary, Bob and Mike. All three wish to update
    and maintain a single RoboHelp project. There are a few different
    ways that this can be done.
    1. A Source Control system may be acquired and implemented.
    This could be cost prohibitive and require setup, configuration and
    ongoing maintenance that is undesired.
    2. Mary, Bob and Mike may carefully communicate and
    essentially "share" a single project.
    3. The project may be carefully split into three different
    projects and each of the authors becomes "captain of their own
    ship" so to speak. Each author is totally responsible for
    maintaining their own project.
    In case number 1, a version control system is purchased and
    implemented. In this case, once it has been installed, each user is
    configured with a login name and password so that each is uniquely
    identified. Then one or more projects are added to the version
    control system. So let's say Mary checks out Topic1.htm to make an
    edit. Then Mike comes along and wants access to the same topic. The
    source control system says nope! Sorry, but Mary has it checked
    out. You can't make changes until she checks it back in! In this
    case, the source control system is preventing undesired changes
    from being made to the files. The traffic cop part stopped Mike.
    The librarian part kept track of the fact that Mary had the topic
    checked out.
    In case number 2, careful communication is mandatory. So
    let's say Mike wants to make some changes. Here is what would need
    to happen:
    1. Mike sends a message to advise Mary and Bob that he will
    be working on the project.
    2. Mike copies the project from its central location to his
    hard drive.
    3. Mike opens the project, makes the changes, generates or
    compiles, then saves the project.
    4. Mike copies the modified version of the project from his
    hard drive back to the central location. This replaces the original
    with Mike's modified copy.
    5. Mike then sends an "all clear" message to Mary and Bob,
    advising that either of them are now free to make any changes.
    6. Perhaps at this point, Bob needs to make changes. In this
    case, the cycle repeats.
    7. Bob sends a message to Mary and Mike advising he will be
    working on the project.
    8. Bob copies the project from its central location to his
    hard drive.
    9. Bob opens the project, makes the changes, generates or
    compiles, then saves the project.
    10. Bob copies the modified version of the project from his
    hard drive back to the central location. This replaces Mike's
    modified copy with Bob's modified copy. At this point, because
    things were carefully applied, the central location now reflects
    modifications made by both Mike as well as Bob.
    In case number 3, each author has his/her own project. Each
    is captian of his/her own ship! Essentially, each author has their
    own copy on their own hard drive. When changes are required, they
    simply open the project at any time they like, make changes and
    copile or generate as needed. In this case, one person is normally
    nominated as the "Master" or head person. This person's project
    contains special information that tells it to "look" for the other
    projects. This type of setup is known as either the "Parent/Child"
    or the "Master/Slave". The end result is that the person viewing
    your help system is actually viewing content provided by two or
    more separate help systems. But from their perspective, they see
    only one. So they are none the wiser.
    Hopefully this helps... Rick

  • [svn:bz-trunk] 20927: Didn't realize I also needed to modify SerialContext. java in addition to AbstractEndpoint. java to change the default max object nest level.

    Revision: 20927
    Revision: 20927
    Author:   [email protected]
    Date:     2011-03-20 11:48:41 -0700 (Sun, 20 Mar 2011)
    Log Message:
    Didn't realize I also needed to modify SerialContext.java in addition to AbstractEndpoint.java to change the default max object nest level. Change maxObjectNestLevel in SerializationContext.java to 512 to change the default max object nest level from 1024 to 512.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java

    As the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- New contexts -->
    <Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
    <Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    You should also provide a WEB-INF folder under pqr or xyz folder.
    You should also provide a web.xml file under each WEB-INF folder.
    The minimal web.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    That's it. Try it out. Hope it is OK.
    Hafizur Rahman
    SCJP

  • Change author "unknown" into the known name of the author?

    When I insert books from one serial of one writer into Digital Editions, some of the books give the writer's name, but other are remarked with "unknown". Is it possible in Digital Editions to change author "unknown" into the known name of the author?

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • Java.io.IOException: The specified module could not be found

    Hi.
    I am using Runtime.exec() to run egrep on some files, and then trying to read its ouput in the following way:
    String command2 = "egrep \"" + pattern +
    "\" " + category + "egrep.txt";
    Process p2 = Runtime.getRuntime().exec(command2);
    double counterA = 0;
    try {
    BufferedReader fin3 = new BufferedReader(new InputStreamReader(p2.
    getInputStream()));
    String reader = "";
    while ( (reader = fin3.readLine()) != null) {
    counterA++;
    if (counterA != 0)
    //System.out.println(read + " ::: " + counterA);
    fin3.close();
    catch (Exception e) {
    System.out.println("E");
    And I get the following exception:
    java.io.IOException: The specified module could not be found
    at java.io.FileInputStream.readBytes(Native Method)
    and this goes on to show exceptions in BufferedInputStream and then my code.
    This does not happen all the time, so I cannot reproduce it easily. I have searched on google and in this forum looking for information but have not found out anything useful.
    Help would be appreciated. Thanks.

    The only possible reason for this error occurring that I can think of is that it is somehow a side effect of the limited buffer size for stdin and stderr.
    For an example of emptying both output streams simultaneously, see the StreamGobbler class in this article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    (this applies to unix, the author just mixed it in with his discussion of windows issues, just remove the "cmd.exe" and other windows stuff)
    Another thing to try if only for the sake of experimentation would be to throw in a "exitValue = p2.waitFor()" just in case there's some unpredictable resource conflict going on (although I can't imagine why for egrep, but it's something to experiment with).
    Let me know if you can narrow down the conditions for reproducing the bug.

Maybe you are looking for

  • IPod Shuffle Error 1418: discovering more, let's try new ways

    I tried to fix my iPod without success, reading every single message of this board or in googgle... and I found a interesting thing: the iPod Shuffle has the same behaviour of a DAMAGED pen drive or memory stick. Let's not focus on iTunes7, iTunes6,

  • Adding new field in Sales order

    Hi frnds, i need to add a field (LIFNR) in item level of sales order. can any body tell me thru which screen exist i can add the field? i hope i need to add the field in VBAP first then i need to go the screen. actually i have done the similar in PO.

  • Zooming inconsistency with links in pdf

    I have an interactive pdf set up containing different chapters & vast amounts of links. I have set the pdf up to 100% zoom. When I open it all is fine, but as soon as I begin to click through the document the page zooming becomes erratic. I have trie

  • Is it possible to populate listbox/dropdownlist items using loadXML method?

    Is it possible to populate listbox/dropdownlist items using loadXML method? (If I have xml data in some string variable) Any sample? Thanks

  • New GL Configuration

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. > Hi friends, Please ymail me New GL configuration material. I need it urgently.