Does applicaton code requires recompile on changing a jar file

Hi
Does the application code requires a recompile if a jar used by it undergoes change(but its interface remains same)
Or same ? in different way jar file are statically or dynamically
Bye
gene

Does the application code requires a recompile if a
jar used by it undergoes change(but its interface
e remains same) No.

Similar Messages

  • Is it Possible to Change the Jar File Names After Downloading at Client

    Hi. All
    Here I am tring to Rename Jar file Names once after JWS Downloads at Client Place. But I don't know how to do this. I Searched in so many Blogs and Forums, but i failed to get Solution for this. As when JWS downloads Jars from server, its changes file names (prefixes with "RM" and "RT"). So same way i want to change once after it downloads files. Can any body tels how to dot this. Really ... Help is appriciated
    Thnx a lot for reading the above
    Sreedhar P

    Note from other posts:
    The content and format of the cache will and do change from version to version of javaws. It is highly unadvisable to build into you application relying on the location or format.
    That being said, for 1.4.2 or 1.5.0, the location was as given: "C:\Documents and Settings\<UserID>\Application Data\Sun\Java\Deployment\cache\javaws", and in long path below that depending on the URL of the resource.
    For version 6, the cache is in : "C:\Documents and Settings\<UserID>\Application Data\Sun\Java\Deployment\cache\6.0" and then in a directory below that named "0" thry "63", depending on the hash of the URL of the resource. The name will be completely obscure, there will be one binary index file with "idx" extension, and then the actual resource will be the file of the same name w/o any extension.
    /Andy

  • Changing executable jar file desktop icon

    hi. i just finished developing a simple application and i would like to change its executable icon. could anyone point me in the right direction on how to go about such a task?
    thanks in advance. ^^;
    xna

    ah. i see. so i would just config the .bat file to run my exec jar then? ok.. this pardon me if i'm starting to ask questions that i'm supposed to know the answer to already but... i don't know how to change the icon of the bat file either T_T. how do i do that? or if ever, is there more direct way of changing it like somewhere in the code or netbeans? coz, back when i was doing some C# based apps on MSVS there is a more direct way in changing it... thanks in advance ^^;

  • How a zip file changed to jar file

    Hi,
    implfactory.properties in <WASstudioHome>\runtimes\base_v51\properties has to be zipped and changed to type of jar and has to be added to the classpath of my application.Can any one help me how to make it?
    thank u
    Dharani

    First save it outside mail, e.g. on desktop; simply drag it there or use save function of attached files in Mail.app
    If you double click on it and does not open, the file is corrupt or incomplete.
    If you did that while in Mail.app, I assume the download had not yet been completed at the time you clicked on it.

  • Extracting and updating files inside a JAR file... from my code

    Hi.
    I need some help in the following:
    from my code, I need to search a JAR file, open it, unzipped it, then I need to search a xml and property files inside the JAR, after that I need to modify the files and finally, my code has to save the changes and update the JAR file. All that must be from my java code.
    How can I do that? I am trying to use Runtime.getRunTime().exec().... but I am not sure that it works. Besides, I don�t know what command to include in the exec() method. Is there any way to do that?
    Thanks

    The normal reason I see for this requirement is that people want to update a properties or data file. The approach I use it that I first look for the data file in a well defined location and if I find it I use it and update it as required. If I don't fine it I create it base on a template file read from the jar file using getResourceAsSrream().
    In this way I never have to update the jar file.

  • Required jar files to execute WLSTInterpreter.execfile

    Hi,
      I am trying to automate Domain creation and deployment of application via script file. I have written the commands in a file called createDomain.py. I would like to execute this script file through java code. What are all the jar files required to be in class path to execute this script. I have included initially weblogic.jar file and later got one another after another while including the required jar files. Looks like there are too many jar files to be included in class path which i am not sure. Is there any simple way of executing this script file from java code.
    Below is the code to execute the script file:
    WLSTInterpreter interpreter = new WLSTInterpreter();
    interpreter.execfile("/home/user0/createMNDomain90.py");
    Another question is whats the best way to automate execution of this file.

    if you execute the setWLSEnv.sh you can see the CLASSPATH settings, for Example:
    [oracle@vSLLGM132 ~]$ source setWLSEnv.sh
    CLASSPATH=/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/JAVA/jdk/lib/tools.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/product/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/oracle/product/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/JAVA/jdk/lib/tools.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/product/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/oracle/product/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/JAVA/jdk/lib/tools.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/product/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/oracle/product/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/oracle/product/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/product/JAVA/jdk/lib/tools.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/product/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/product/Middleware/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/oracle/product/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
    PATH=/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/JAVA/jdk/jre/bin:/opt/oracle/product/JAVA/jdk/bin:/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/JAVA/jdk/jre/bin:/opt/oracle/product/JAVA/jdk/bin:/opt/oracle/product/11.2.0/dbhome_se/bin:/opt/oracle/product/11.2.0/dbhome_se/OPatch:/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/JAVA/jdk/jre/bin:/opt/oracle/product/JAVA/jdk/bin:/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/JAVA/jdk/jre/bin:/opt/oracle/product/JAVA/jdk/bin:/opt/oracle/product/Middleware/wlserver_10.3/server/bin:/opt/oracle/product/Middleware/modules/org.apache.ant_1.7.1/bin:/opt/oracle/product/JAVA/jdk/jre/bin:/opt/oracle/product/JAVA/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/oracle/bin:/opt/oracle/bin
    You can copy and paste the CLASSPATH to your program.

  • Jar:// protocol corrupting stream when jar file changes

    We've implemented a custom classloader that allow it to be given multiple directories to search for classes including any jar files within the root of the directory.
    So if there are any Jars in the given directory then it will search in these jars for the class.
    Here lies the problem. To implement the findResources method in the classloader we need to pass back a URL object to this jar for the resource that we want.
    So for example if we want myText.properties that lives in the file myJar.jar then the classloader will find this jar and pass back a URL of jar://myJar.jar/!myText.properties.
    Then we can do a
    in=url.getInputStream();
    in.read(); which works fine.
    Now the problem.
    if we now update the jar file and create a new classloader object and go through finding this resource. When we try to read the inputstream we get the following exeption :
    java.util.zip.ZipException: invalid block type
         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:137)I've narrowed it do to the JarURLConnection Stream handler. Seems that this is half caching or something.
    Here is a code sniped to reproduce the error.
    for(int a=0;a<2;a++){
            try {
              URL u=new URL("jar: " + new File("d:/myJar.jar").toURL() + "!/" + "myText.properties");
              JarURLConnection juc=(JarURLConnection)u.openConnection();
              InputStream in=juc.getInputStream();
              System.out.println(in.read());
              in.close();
               catch (Exception ex) {
                 ex.printStackTrace();
              System.out.println("Change the Jar file to a newer version you have 10seconds");
              synchronized (this) {
                try {
                  this.wait(10000);
                catch (InterruptedException ex1) {
          }So if you use one Jar version you'll get an output. Then it will wait 10seconds while you change or update your Jar and then it will go round again and produce the execption.
    This is happening on both 1_3_1_08 and 1_4_1_02.
    Any help would be appriciated.
    Cheers
    Johnnyfp

    I've seen a very similar result from using URL.openStream(). Start with two copies of 'yourJar.jar', but change the manifest of one to make it a different size.
    String jarName = "yourJar.jar";
    String containedFile = "META-INF\MANIFEST.MF"; // for example
    URL jarUrl = ...make an url from jarName and containedFile
    InputStream is = jarUrl.openStream();
    byte[] bytes = ...read the bytes...
    is.close();
    println( 'bytes found: " + bytes.length );
    Put this code into a method and put a call to it in a loop with XXX second sleep.
    This will work with either jar file. But if either jar is replaced by the other during sleep (simulating hot deployment), a ZipException is thrown, invalid block type.
    Each new iteration starts fresh with string names, the code doesn't explicitly retain any other references from one iteration to the next. There's no URLConnection on which to setUseCaches().
    The work-around for this is to avoid URL. Replace the 'URL...' and 'InputStream...' lines above with
    JarFile jf = new JarFile( jarName );
    InputStream is = jf.getInputStream( containedFile );
    and the same hot deployment scenario works.
    I've seen the same results with Sun 1.4.1_02, 1.4.2_01, 1.5.0 (beta) and IBM 1.3.1.

  • Finding the source code from Jar file

    Hi,
    I am a beginner java programmer but have been entrusted with learning our company's Java application. The architect of the application is not forthcoming in sharing information and so I need help in tracing the source code for the application. I know where the .jar files are stored but I don't know where the actual .java or .class files are stored.
    In the .profile file, I see the classpaths set to various jar files. eg.
    CLASSPATH=$PATH:/eaid01_apps/merc01/libs/tools/java/drivers/bin/eaiRun.jar
    When I view this jar file with command "jar tf eaiRun.jar", it displays all the files under it. Onc such listing is as following:
    citi/eai/EAI.class
    citi/eai/Interface.class
    I want to go to that specific directory on our file system which is storing these .class or.java file. From what I have learned about packages, I should find some folder called 'citi' ,'eai'.
    However I am not able to find these folders anywhere on file system. Is there a way I can find where the actual souce code is by looking at the jar files.
    Please help. Let me know if you need more information.
    thanks,
    Anand.

    Is there a way I can find where the actual souce code is by looking at the jar files.No, in general you can't, you should ask the architect that you mentioned earlier. The name of the source file is sometimes stored in the .class file for debugging purposes but that's unlikely going to help you find the files.
    You should also ask if he/she has got any documentation of the system. It's often a lot easier to follow documentation written in human language than program code written in a programming language. There could be documentation in a format similar to this: http://java.sun.com/j2se/1.4.2/docs/api/

  • JAR file required

    Hi to all,
    I've required to include jdbc.driver.jar file in my lib directory for some ant operation.
    Can any help me to download jdbc.driver.jar file ?
    I try but I can't find url to download jdbc.driver.jar file.
    Regards
    -Shobhit

    Hi,
    I am using ant hbm2java command on command line.
    I post whatever I foud in command line.
    D:\ht>ant hbm2java
    Buildfile: build.xml
    hbm2java:
    [hibernatetool] Executing Hibernate Tool with a Standard Configuration
    [hibernatetool] 1. task: hbm2java (Generates a set of .java files)
    BUILD FAILED
    D:\ht\build.xml:55: java.lang.NoClassDefFoundError: org/grlea/log/SimpleLogger
    Total time: 0 seconds
    D:\ht>Pl suggest anyone If can.
    -Shobhit

  • Printing error: in waiting stand (identification code required)

    I have a printer (HP) connected with USB cable to my intel iMac. From my macbook I want to print something. On the macbook I select the printer that is connected to the iMac. (The macbook has no problem finding this printer.) When I print i get the following error message (sorry it's in dutch)
    In wachtstand (identiteitscontrole vereist) -> translated: in waiting stand (identification code required)
    Further nothing happens....
    This method worked for years but since I moved to a new internet provider I changed some settings connecting the time capsule to the new internet modem and since then it does not work anymore...

    Login with an admin account and try http://127.0.0.1:631/ in your browser on the affected machine. See if there's something there that's different from the other machines.

  • Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    If it is trying to verify your payment info, I would be willing to guess that it is looking for the security code for your credit card. Did you credit card just get replaced lately or the expiration date change? When is the last time that you updated your payment information in iTunes?

  • What does (error code -600) mean?

    What does (error code -600) mean?
    I received this code in a pop up window while trying to open iTunes from my Apps folder.

      procNotFound             
    = -600, /*no eligible process with specified descriptor*/
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Any change?

  • Ui!ReportManager_0-1!219c!08/07/2014-16:18:21:: e ERROR: Microsoft.ReportingServices.UI.FolderPage+InsufficientPermissionsToRoot: User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient permissions have been

    I installed SSRS on an existing instance. Configured SSRS using report manager, loaded some reports and they work as expected.
    The problem is I can not launch(IE)  Report Manager UI due to error in description. I can launch the Report Manager IF I RUN IE AS ADMINISTRATOR. The details of error from SSRS log file listed below.
    The main page SSRS page starts to display. The display starts with "Home | my subscriptions |site Settings..." in upper right side, and "SQL Server Reporting Services" in upper left. Then the error displays
    User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient     permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.
    Starting IE as administrator starts the Report Manager with out problems.
    Does anyone have suggestion, is more information needed?  Thanks, Joe
    library!ReportServer_0-2!f4c!08/07/2014-16:18:21:: i INFO: Call to GetPermissionsAction(/).
    ui!ReportManager_0-1!219c!08/07/2014-16:18:21:: e ERROR: Microsoft.ReportingServices.UI.FolderPage+InsufficientPermissionsToRoot: User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient permissions have been
    granted and Windows User Account Control (UAC) restrictions have been addressed.
       at Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-2!f4c!08/07/2014-16:18:21:: i INFO: Call to GetSystemPermissionsAction().
    ui!ReportManager_0-1!219c!08/07/2014-16:18:21:: e ERROR: HTTP status code --> 500
    -------Details--------
    Microsoft.ReportingServices.UI.FolderPage+InsufficientPermissionsToRoot: User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions
    have been addressed.   at Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)   at System.EventHandler.Invoke(Object sender, EventArgs e)   at System.Web.UI.Control.OnInit(EventArgs e)  
    at System.Web.UI.Page.OnInit
    (EventArgs e)   at System.Web.UI.Control.InitRecursive(Control namingContainer)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-2!f4c!08/07/2014-16:18:21:: i INFO: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-1!219c!08/07/2014-16:18:21:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!ReportServer_0-2!2538!08/07/2014-16:19:00:: i INFO: Call to GetPermissionsAction(/).
    ui!ReportManager_0-1!219c!08/07/2014-16:19:00:: e ERROR: Microsoft.ReportingServices.UI.FolderPage+InsufficientPermissionsToRoot: User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient permissions have been
    granted and Windows User Account Control (UAC) restrictions have been addressed.
       at Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-2!2538!08/07/2014-16:19:00:: i INFO: Call to GetSystemPermissionsAction().
    ui!ReportManager_0-1!219c!08/07/2014-16:19:00:: e ERROR: HTTP status code --> 500
    -------Details--------
    Microsoft.ReportingServices.UI.FolderPage+InsufficientPermissionsToRoot: User 'SSRS_SERVER\SSRS_user1' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions
    have been addressed.   at Microsoft.ReportingServices.UI.FolderPage.Page_Init(Object sender, EventArgs e)   at System.EventHandler.Invoke(Object sender, EventArgs e)   at System.Web.UI.Control.OnInit(EventArgs e)  
    at System.Web.UI.Page.OnInit
    (EventArgs e)   at System.Web.UI.Control.InitRecursive(Control namingContainer)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-2!1c98!08/07/2014-16:19:00:: i INFO: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-1!219c!08/07/2014-16:19:00:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!WindowsService_0!202c!08/07/2014-16:20:52:: i INFO: Call to CleanBatch()
    library!WindowsService_0!202c!08/07/2014-16:20:52:: i INFO: Using folder N:\WFSLR_JOE\MSRS11.WFSLR_JOE\Reporting Services\RSTempFiles for temporary files.
    library!WindowsService_0!202c!08/07/2014-16:20:52:: i INFO: Cleaned 0 batch records, 0 policies, 1 sessions, 0 cache entries, 1 snapshots, 4 chunks, 0 running jobs, 0 persisted streams, 4 segments, 4 segment mappings, 0 edit sessions.
    library!WindowsService_0!202c!08/07/2014-16:20:52:: i INFO: Call to CleanBatch() ends

    Hi Joseph_SQL,
    The following operating systems limit the overuse of elevated permissions by removing administrator permissions when accessing applications: Windows Server 2012 R2, Windows 8.1, Windows 8, Windows Server 2012, Windows Server 2008 R2, Windows 7, Windows Server
    2008 and Windows Vista.
    Because the noted operating systems limit permissions, members of the local Administrators group run most applications as if they are using the Standard User account. To avoid open Report Manager in Internet Explorer always using Run as administrator option,
    we can refer to the following configuration steps:
    Add Reporting Services URLs to trusted sites.
    Report Manager Folder Settings
    Report Manager Site Settings
    For more details about how to configure the settings, please refer to the following article:
    http://msdn.microsoft.com/en-us/library/bb630430(v=sql.110).aspx. After finishing the configuration, we can re-open Report Manager in Internet Explorer without using
    Run as administrator.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Does this code effect performance.

    I am doing some code now :) and I did a method like this, however I do not know if it effects performance for the whole application when the method is being called, or weather it is a good coding standard.
    The code in question is the following:
    public void myMethid(){
       class c{
          public c(String s){
              System.out.println(s);
       c myC = new c("Hello");
    }I know this is a stupid example, however would such a think effect performance, or be wrong? ... would it be better to just declare c as an external class?
    regards,
    sim085

    I have seen ppl complaining about cross posts, but what I am going to do here is cross post my answer, which I feel might be helpful in this situation, and considering that it still lies in the grey area:-
    "I smell a very interesting discussion stemming out of it, but your question is as open ended as it could be, what kind of web application and what performance. performance is the most misused word I have come across in a lot of design considerations. It is not one parameter you could measure but a combination of different considerations, which would be as follows:-
    1) Response time
    2) Responsivesness
    3) Latency
    4) Thoroughput
    5) Load
    6) Load sensitivity
    7) Efficiency
    8) capacity
    9) scalabilty
    You might want to look on the web as to what they mean since I am not going to go into that detail. But these attributes are independent of each other, an application with good latency might be poor in scalability or other way around, so it depends as to whats the nature and requirements of the app you are looking at then deciding which way you would want to go. Its not that simple.
    Secondly I would quote Martin Fowler from his book "Patterns of Enterprise Application Architecture":-
    "Too often I have seen designs used or rejected because of performance considerations, which turn out to be bogus once somebody actually does some measurements on the real setup used for the application."
    So please go back to the requirements and try to figure out what you are actually looking for."

  • Connecting to WiFi when there is no access code required

    I have a Samsung Galaxy Nexus with ICS. I'm still learning how to use it and have run into a problem with connecting to some wifi locations. When I connect to a wifi that requires an access code, I have no problem, but when I try to connect to a public wifi that does NOT require a code, I can't seem to make that work. How do I tell it that there is no code required?
    Regards,
    srevi

    if its an unlocked wifi it might not have data connected to it

Maybe you are looking for