`
sillycat
  • 浏览: 2539805 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

MAC Environment Setting Up(1)Tools of JAVA

 
阅读更多
MAC Environment Setting Up(1)Tools of JAVA


1. Password Reset

On the first day, I got MAC Pro laptop. But I do not know the password.

So I shutdown my MAC and start the device and immediately after the starting sound, I click on the button 'Shift' to enter the safe boot mode. They I follow the steps their and use the command to change the password of the current user.

>passwd username



2. SSH Key

Use the command ssh to connect to one server, then I can get the directory /Users/username/.ssh

>ssh-keygen -t dsa

I can generate my own key for MAC laptop.



And I can also create a file with other private key, for example, my default private key file is carl_mac and carl_mac.pub. And I created a separate file named other_key, when I try to access to the other server. I will use the command to specify the key file:

>ssh -i other_key username@otherserver.com



certainly, I will give the rights to key file.

>chmod 400 other_key



3. Lock the Screen

How to lock the screen when I leave my mac on my desk.

Use this command  'Control'  + 'Shift'  + 'Eject' Eject is the top right button.



Change the configuration in 'Security' ----> 'General' tab and select the 5 seconds as the time interval.



4. Install git and plugins

Download the git software from references git website.



5. Fix the subversion plugin error on Eclipse

Follow the BLOG I had before. But I got error message as follow when I use port command>

Error Message:

Digby-Users-MacBook-Pro-3:code carl$ sudo port install subversion

--->  Computing dependencies for subversionError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?



solution:

I need to wait until I install the xcode. follow this blog: http://www.macports.org/install.php.

But after I installed Xcode. The system asked me for tool 'make'.



Next step I will install make on MAC

Maybe, that is only because I only install Xcode 4.4.1. And I ignore the command line tool. I will install the command line tool too this time.

http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_lion_for_xcode__august_2012/command_line_tools_for_xcode_os_x_lion_aug_2012.dmg



It works then. I follow the BLOG I wrote before and go on with these commands:

>sudo port install subversion

>sudo port install subversion-javahlbindings



And we also need to update the SVN plugin to http://subclipse.tigris.org/update_1.8.x

Sometimes, we need to use svn command to update our svn configurations too.
>svn upgrade


5. Install tomcat on MAC

I download the file with name apache-tomcat-7.0.29.tar.gz. And I try to unzip it and move it to working directory.

>tar zxvf apache-tomcat-7.0.29.tar.gz

>sudo mkdir /opt/tool/

>sudo mv apache-tomcat-7.0.29 /opt/tool/



But when I start my tomcat in STS tool, it gives me out of memory error message as follow.

Error Message:

SEVERE: A child container failed during start

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)



Solution:

Add this configuration to my STS configuration on tomcat, open launch configuration.

-Xms512m -Xmx768m  -XX:MaxPermSize=256m



These configuration format and place can be taken JBOSS for example.



6. Install Git on MAC and git plugin on eclipse

http://sillycat.iteye.com/blog/1323263

http://sillycat.iteye.com/blog/689970



Just install git on app store. And follow the steps to install edit plugin.



7. Install the sftp client

One of the famous client named filezilla. But it does not support the public/private key pair.



Another nice client is cyberduck. I will try it http://cyberduck.ch/. It is really wonderful to have this tool. And it supports the private/public key pair.



8. Install jboss5.1

I just installed jboss 5.1 as usual. And start the JBOSS server with 80 and 443 port. But I got error message on MAC.

1:01:09,860 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

01:01:09,975 ERROR [Http11Protocol] Error initializing endpoint

java.net.BindException: Permission denied /0.0.0.0:80

at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:504)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)


Solution:

http://www.techyv.com/questions/can-not-start-jboss-port-80

I will use 8080 and 8443 instead.



N. Tips for Installing Some Software

thunder QQ and java in app store





references:

http://sillycat.iteye.com/blog/1100363

http://osxdaily.com/2011/01/17/lock-screen-mac/

https://distfiles.macports.org/MacPorts/MacPorts-2.0.4-10.7-Lion.dmg

http://sillycat.iteye.com/blog/1459223




分享到:
评论

相关推荐

    Java Runtime Environment JRE 1.4.2

    Java Runtime Environment (JRE) 1.4.2 是Java应用程序执行所需的关键组件,它为开发者和用户提供了在各种操作系统上运行Java应用的基础。这个版本是Sun Microsystems在2004年发布的一个重要里程碑,它在Java技术的...

    Java8/java1.8的tools.jar

    1. **检查JDK安装**:确保已安装了完整的JDK,而不是只安装了Java Runtime Environment (JRE)。JRE不包含`tools.jar`。 2. **设置环境变量**:确认`JAVA_HOME`环境变量指向正确的JDK安装目录,并且`PATH`变量中包含...

    Java Runtime Environment 1.6.0.7 (32-bit

    Java Runtime Environment(JRE)是Java程序运行所需的基础组件,由Oracle公司提供。1.6.0.7 版本是针对32位操作系统的一个特定发行版,这意味着它设计用于在32位Windows系统上执行Java应用程序。在这个版本中,Java...

    32位的Java Runtime Environment

    Java Runtime Environment(JRE)是Java程序运行所需的基础软件组件,它是Java开发工具集(Java Development Kit,JDK)的一部分。32位的Java Runtime Environment是专为32位操作系统设计的版本,允许用户在这样的...

    Java Runtime Environment1.8.0

    Java Runtime Environment 1.8.0是Java开发和运行应用程序必不可少的一部分,它是Oracle公司发布的Java平台标准版(Java SE)的实现。这个版本是32位的,这意味着它设计用于在32位操作系统上运行,比如Windows XP、...

    java runtime environment 1.8.0_45 64bit

    Java Runtime Environment(JRE)是Java程序运行所需的基础组件,它是Oracle公司提供的Java平台的核心部分。JRE 1.8.0_45是Java 8的一个特定版本,64位版本则是为在64位操作系统上运行Java应用程序设计的。这个版本...

    java runtime environment 1.8.0_45 64bit.rar

    Java Runtime Environment(JRE)是Java程序运行所需的基础组件,它是Oracle公司提供的Java平台标准版(Java SE)的一部分。在本例中,我们讨论的是版本1.8.0_45,这是一个64位的版本,专为64位操作系统设计。这个...

    Java Runtime Environment-6.0

    Java Runtime Environment-6.0.26.exe

    Tools_javacard_java_源码

    1. **JCIDE**:这可能是一个Java Card集成开发环境(Integrated Development Environment),为开发者提供了一个图形化界面来编写、编译、调试和部署Java Card应用程序。它可能包括代码编辑器、编译器、模拟器和调试...

    Java运行环境 Java SE Runtime Environment 8.0.172.x86官方多语言正式版

    Java SE Runtime Environment(运行时环境)包含了运行以 Java 编程语言编写的程序所必需的 Java 虚拟机、运行时类库和 Java 应用程序启动器。 Java 平台的安全性 一个由角色提供的安全信息的描述。适用于开发人员...

    essential skills of java

    ### Java Essential Skills for Secure Programming #### Introduction In today's digital age, the security of software applications is paramount. Criminal hackers have increasingly targeted web ...

    java runtime environment(JRE)安装 2020-11-4

    java runtime environment(JRE)安装 2020-11-4 一、搭建环境 1.1 安装Keil 5 官网下载:http://www2.keil.com/mdk5/ 百度网盘:https://pan.baidu.com/s/18t_ta0WWX_f1KCKXfgj_Zw 提取码:gx3r 1.2 安装JRE 由于...

    Remote Sensing of Environment期刊投稿模板 word版

    远程感知环境期刊投稿模板Word版是 Remote Sensing of Environment 期刊投稿的模板文件,该模板基于 Word 版本,可以帮助作者快速编写论文稿件。本模板包含了论文的基本结构和排版样式,包括标题、作者信息、摘要、...

    virtuoso spectre RF tools lecture manual

    Setting Up the Simulation Environment.............. 2-8 Setting Up the Default Plot Output.. 2-10 Setting Up the PSS Simulation ........ 2-11 Verifying the Fundamental (Beat) Frequency ... 2-12 ...

    Sun Java SE Runtime Environment(JRE)6

    Sun Java SE Runtime Environment (JRE) 6 是Java平台标准版的一个重要版本,它为运行基于Java技术的应用程序提供了所需的运行环境。Java SE是Java Development Kit (JDK)的一部分,但JRE则不包含开发工具,主要是...

    Elasticsearch for Hadoop

    1. Setting Up Environment Setting up Hadoop for Elasticsearch Setting up Java Setting up a dedicated user Installing SSH and setting up the certificate Downloading Hadoop Setting up environment ...

    64位的Java Runtime Environment

    Java Runtime Environment(JRE)是Java程序运行所需的基础软件组件,它包含了Java虚拟机(JVM)、类库以及其他支持Java应用程序执行的组件。64位的Java Runtime Environment是为了在64位操作系统上运行Java程序而...

    JRE 7 Java SE Runtime Environment 7u80

    JRE 7, Java SE 运行时环境 7u80,Linux/windows/Mac OS系统下 32位/64位 安装包,包含以下版本: Linux x86 jre-7u80-linux-i586.rpm Linux x86 jre-7u80-linux-i586.tar.gz Linux x64 jre-7u80-linux-x64.rpm ...

    Test-Driven Java Development

    You'll be guided through setting up tools, frameworks, and the environment you need, and will dive right in to hands-on exercises with the goal of mastering one practice, tool, or framework at a time....

    jna-4.2.2 官方原版下载

    Setting up a Mac Development Environment Releasing JNA Publishing to Maven Central Contributing You're encouraged to contribute to JNA. Fork the code from ...

Global site tag (gtag.js) - Google Analytics