SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java Library Which One Or . . .

    I'm brand new to the Java script and Java library.

    I need to download Java . . . what? Libraries, code or both.

    Where is a safe site to do this?

    I'm trying to learn how to execute picture arrays on a web page using Java.

    Any assistance would be greatly appreciated.

    Thanks much . . . Rick

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,228
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    Are you sure you're not confusing Java with javascript?

    The last time I downloaded Java I did so at the Sun site. But they were bought by Oracle so I'd go there now. I imagine they use "mirror sites" for the downloads.

    You will probably do OK with the most recent stable JDK (Java Developers Kit) that your OS will support. It will have the JVM (Java Virtual Machine) so you can write, compile and run your code.

    Or you might be interested in an IDE if you're not keen on working with text editors and the command line or if you're planning on really getting into it. IMHO Netbeans or Eclipse would be good.

    Depending on what you're trying to do you may need other packages too. If you can't figure out which ones I'm sure you can get some help here.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I downloaded NetBeans and Java SE from Oracle.

    NetBeans IDE 7.0.1 will not install.

    The error message is: No Compatible JDK was found?

    What is JDK?

    Thanks.

    Rick

  4. #4
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK . . . Java Development Kit.

    So . . . where do I install Java SE, JDK and net beans.

    I'd like to have all three of these on my16 gig stick. I move around a lot.

    Is this doable?

    Thanks.

    Rick

  5. #5
    SitePoint Member
    Join Date
    Apr 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No Compatible JDK was found
    Netbeans can't find the path to the JDK. If you downloaded the bundle this should not happen but all you have to do is point netbeans to the right path of the jdk.

    Here is a link on configuring it for portablity:

    FaqPortableWorkingEnvironments - NetBeans Wiki

    I wouldn't recommend netbeans on a stick it might be very slow and I think you may need a jvm as well.

  6. #6
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - I did finally get it all installed.

    I'm going to bypass installation on a stick and slam it on the hard drive.

    I'm not sure how these programs work.

    I'm trying to implement a simple method to display pictures in a slide show on my html page.

    Here is my html page from "Creating an CSS background slider with jQuery" found on the Internet.

    Code:
    <link type="text/css" rel="stylesheet" href="css/backgroundslider.css" media="screen,projection,tv"/>
    </head>
    
    <div id="mast-head" style=”background: url(css/images/1.jpg) no-repeat; height: 250px; width: 470px;"></div>
    
    	<script type="text/javascript" src="css/scripts/jquery.js"></script>
    		<script language="JavaScript" type="text/javascript">
     			$(document).ready(function(){
     
    	 var imgArr = new Array('css/images/'
    		 'css/images/villagecolcor.jpg'
    		 'css/images/bayfrontyard.jpg'
    		 'css/images/lidoisland.jpg'
    		 'css/images/attachedhomes1.jpg'
     );
     
     var preloadArr = new Array();
     var i;
     
     /* preload images */
     for(i=0; i < imgArr.length; i++){
     preloadArr[i] = new Image();
     preloadArr[i].src = imgArr[i];
     }
     
     var currImg = 1;
     var intID = setInterval(changeImg, 6000);
     
     /* image rotator */
     function changeImg(){
     $('#masthead').animate({opacity: 0}, 1000, function(){
     $(this).css('background','url(' + preloadArr[currImg++%preloadArr.length].src +') top center no-repeat');
     }).animate({opacity: 1}, 1000);
     }
     
     });
    </script>
    
    
    <body>
    <img src="css/images/BayfrontYarddock1.jpg" alt="" width="450" height="270" />
    
    
    </body>
    CSS:
    Code:
    .mast-head{float right:;
      no-repeat; height: 250px; width: 470px;
    It's exponentially mind boggling to me.

    Thanks . . . Rick


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •