Batch to setup JAVA programming environment for Algorithm class from priston

Original web site: http://algs4.cs.princeton.edu/linux/

Part. I

[username:~/]
[username:~/] mkdir algs4
[username:~/] cd algs4
[username:~/algs4/] mkdir bin
[username:~/introcs/] sudo apt-get update
[username:~/introcs/] sudo apt-get install openjdk-7-jdk

Part. II

wget http://algs4.cs.princeton.edu/linux/drjava.jar
wget http://algs4.cs.princeton.edu/linux/drjava
chmod 700 drjava
mv drjava bin
wget http://algs4.cs.princeton.edu/code/stdlib.jar
wget http://algs4.cs.princeton.edu/code/algs4.jar
wget http://algs4.cs.princeton.edu/linux/javac-algs4
wget http://algs4.cs.princeton.edu/linux/java-algs4
chmod 700 javac-algs4 java-algs4
mv javac-algs4 bin
mv java-algs4 bin
wget http://algs4.cs.princeton.edu/linux/checkstyle.zip
wget http://algs4.cs.princeton.edu/linux/findbugs.zip
unzip checkstyle.zip
unzip findbugs.zip
wget http://algs4.cs.princeton.edu/linux/checkstyle.xml
wget http://algs4.cs.princeton.edu/linux/findbugs.xml
wget http://algs4.cs.princeton.edu/linux/checkstyle-algs4
wget http://algs4.cs.princeton.edu/linux/findbugs-algs4
chmod 700 checkstyle-algs4 findbugs-algs4
mv checkstyle-algs4 bin
mv findbugs-algs4 bin
mv checkstyle.xml checkstyle-5.5
mv findbugs.xml findbugs-2.0.3
时间: 2024-08-10 17:17:37

Batch to setup JAVA programming environment for Algorithm class from priston的相关文章

Chapter 2 The Java Programming Environment

1. Installing the Java Development kit (JDK) 2. Choosing a Develpment Environment 3. Using the Command-Line Tools 4. Using an Integrated Development Environment 5. Running a Graphical Application 6. Building and Running Applets In this chapter, we wi

There is insufficient memory for the Java Runtime Environment to continue问题解决

在linux系统下长时间进行性能测试,连续几次发生服务器假死无法连接上的情况,无奈只能重启服务器.在测试路径下发现hs_err_pid17285.log文件,打开文件查看其主要内容如下: # There is insufficient memory for the Java Runtime Environment to continue.# Cannot create GC thread. Out of system resources.# Possible reasons:#   The sy

Setup iOS Development Environment.

Setup iOS Development Environment Install XCode and check-out source code from SVN XCode Please find document from Apple on how to install XCode. Check-out Source Code In XCode, Use menu "Source Control" -> "Check-out" to checkout s

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' 解决方案

一.描述 今天我先安装了jdk8,后来由于其他软件不兼容,又重新安装了jdk7并修改了环境变量为jdk7的,结果在cmd中输入Java -version发现还是用的jdk8的,于是我就将jdk8卸载后重启了机器. 重启后机器再次输入jdk -version命令时出现以下错误提示: 二.解决方案 将C:\Windows\System32目录下的java.exe删除即可. Error: Registry key 'Software\JavaSoft\Java Runtime Environment'

经典错误重现->Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to

经常碰到这种错误,错误代码如下: Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS,No Java Virtual machine was found after searching the following locations:..............................................javaw.exe in y

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/

linux系统下jdk是已经安装好的情况之下软件出现 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/jre/bin/java java in yo

装完jdk运行java出现错误Error opening registry key 'Software\JavaSoft\Java Runtime Environment'

装完jdk运行java出现错误Error opening registry key 'Software\JavaSoft\Java Runtime Environment' 出现上述错误的终极解决办法是jdk安装路径里面不能含有中文...... 装完jdk运行java出现错误Error opening registry key 'Software\JavaSoft\Java Runtime Environment'

Entity Framework Tutorial Basics(4):Setup Entity Framework Environment

Setup Entity Framework Environment: Entity Framework 5.0 API was distributed in two places, in NuGet package and in .NET framework. The .NET framework 4.0/4.5 included EF core API, whereas EntityFramework.dll via NuGet package included EF 5.0 specifi

Ubuntu Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:

此问题起于我在Ubuntu1004上装了两个版本的eclipse:Galieo+helios:卸载前者后出现启动不了eclipse的问题:在网上找了下,可以按如下过程进行解决: Eclipse 3.6 在 Ubuntu 10.04 下会出现一个很奇怪的现象,我没有经过测试,无法确定是Ubuntu 10.04 还是 JDK 还是 Eclipse本身造成的. 这个现象是: 可以在终端顺利启动Eclipse,但是鼠标双击,或者用起动器启动就会出现如下的内容: A Java RunTime Enviro