Ubuntu 9.10, Java 5 and the Android Open Source Project

2023-05-16

出处: http://blog.enea.com/Blog/bid/32050/Ubuntu-9-10-Java-5-and-the-Android-Open-Source-Project


Currently there is an issue with building the Android Open Source project on Ubuntu 9.10 Karmic Koala, or more specific with the Java 5 support. Java 5 was obsoleted by Sun on October 30 2009 and is not part of the Ubuntu 9.10 distribution. However there is still a need to use Java 5 for building Android since Java6 is not yet supported. There are two methods to get Java5 working on Ubuntu 9.10.

Method 1 - download and install from Sun
This method will let you install the Java5 JDK in a separate directory and add it to the path.
Download the Java5 JDK for Linux from http://java.sun.com/javase/downloads/5u21/jdk
This is a binary file that you should save to a suitable location like ~/tools
In order to make i executable chmod the file as

  $ chmod 777 jdk-1_5_0_21-linux-i586.bin

and run it

  $ ./jdk-1_5_0_21-linux-i586.bin

This will install the jdk to the current directory.
To use the JDK5 tools you need to add it first in the path before building the Android Open Source Project

  $ export PATH=~/tools/jdk1.5.0_21/bin

This allows you to remove the JDK5 from the path when not building Android and use the standard Java settings instead.

Method 2 - use the Ubuntu 9.04 repositories to get Java5
This method adds the Jaunty repositories and installs Java5 as the default java setting in the system. Open the sources file (/etc/apt/sources.list) for editing, as root

  $ sudo gedit /etc/apt/sources.list

and add:

  deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
  deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

save the file and close gedit. Next sync your sources by running

  $ sudo apt-get update

and install

  $ sudo apt-get install sun-java5-jdk

To set the system to use Java 5 you need to update your java alternatives by running

  $ sudo update-alternatives --config java

Choose java-1.5.0-sun and you should be done.

Hopefully the Android Open Source Project will build with Java 6 shortly but the above solutions should get you going with platform work on Ubuntu 9.10.



本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Ubuntu 9.10, Java 5 and the Android Open Source Project 的相关文章

  • hibernate锁等待超时超时;

    我正在使用 Hibernate 尝试模拟对数据库中同一行的 2 个并发更新 编辑 我将 em1 getTransaction commit 移至 em1 flush 之后我没有收到任何 StaleObjectException 两个事务已成
  • 匿名类上的 NotSerializedException

    我有一个用于过滤项目的界面 public interface KeyValFilter extends Serializable public static final long serialVersionUID 7069537470113
  • 普罗米修斯指标 - 未找到

    我有 Spring Boot 应用程序 并且正在使用 vertx 我想监控服务和 jvm 为此我选择了 Prometheus 这是我的监控配置类 Configuration public class MonitoringConfig Bea
  • 创建反应应用程序:npm 错误!解析“...”附近时 JSON 输入意外结束

    描述错误 npx create react app my app不适合我 我试过npm cache clean force但我一次又一次地遇到同样的错误 重现步骤 npm cache clean force npm npx create r
  • Java整数双除法混淆[重复]

    这个问题在这里已经有答案了 方案1 int sum 30 double avg sum 4 result is 7 0 not 7 5 VS 方案2 int sum 30 double avg sum 4 0 Prints lns 7 5
  • 欧洲中部时间 14 日 3 月 30 日星期五 00:00:00 至 日/月/年

    我尝试解析格式日期Fri Mar 30 00 00 00 CET 14至 日 月 年 这是我的代码 SimpleDateFormat formatter new SimpleDateFormat dd MM yyyy System out
  • 如何在 Viewpager 中禁用预加载下一页? [复制]

    这个问题在这里已经有答案了 如何在 Viewpager 中禁用页面预加载 I tried viewPager setOffscreenPageLimit 0 但它不起作用 用这个viewPager setOffscreenPageLimit
  • 有关 ListView 自定义行布局项目上的 onClick() 事件的帮助

    我有一个 ListView 其行由我格式化 每行都有 ImageView 和 TextView 的混合 我还实现了自己的适配器 并且能够通过它绘制每一行 现在 我想要这样的东西 用户单击 ImageView 不是行上的其他任何位置 但只有此
  • 如何在JSTL中调​​用java方法? [复制]

    这个问题在这里已经有答案了 这可能是重复的问题 我只想调用不是 getter 或 setter 方法的方法例如 xyz 类的 makeCall someObj stringvalue Java类 Class XYZ public Strin
  • Netty:阻止调用以获取连接的服务器通道?

    呼吁ServerBootstrap bind 返回一个Channel但这不是在Connected状态 因此不能用于写入客户端 Netty 文档中的所有示例都显示写入Channel从它的ChannelHandler的事件如channelCon
  • Android:监听状态栏通知

    有没有办法在状态栏被下拉时监听通知 1 用于检测状态栏变化 您可以注册一个监听器来获取系统UI可见性变化的通知 因此 要在您的活动中注册侦听器 Detecting if the user swipe from the top down to
  • HQL Hibernate 内连接

    我怎样才能在 Hibernate 中编写这个 SQL 查询 我想使用 Hibernate 来创建查询 而不是创建数据库 SELECT FROM Employee e INNER JOIN Team t ON e Id team t Id t
  • 如何在 Android 中使用 C# 生成的 RSA 公钥?

    我想在无法假定 HTTPS 可用的情况下确保 Android 应用程序和 C ASP NET 服务器之间的消息隐私 我想使用 RSA 来加密 Android 设备首次联系服务器时传输的对称密钥 RSA密钥对已在服务器上生成 私钥保存在服务器
  • Android 中循环事件的星期几和时间选择器

    我想创建一个控件 允许用户在我的 Android 活动中选择一周中的某一天 星期一 和一天中的某个时间 下午 1 00 找不到任何关于此的好帖子 好吧 我想我已经明白了 我只是不喜欢这个解决方案 因为我在一周中的某一天使用的微调器与时间选择
  • 如何使用 JSch 将多行命令输出存储到变量中

    所以 我有一段很好的代码 我很难理解 它允许我向我的服务器发送命令 并获得一行响应 该代码有效 但我想从服务器返回多行 主要类是 JSch jSch new JSch MyUserInfo ui new MyUserInfo String
  • FileOutputStream.close() 中的设备 ioctl 不合适

    我有一些代码可以使用以下命令将一些首选项保存到文件中FileOutputStream 这是我已经写了一千遍的标准代码 FileOutputStream out new FileOutputStream file try BufferedOu
  • 在Android Studio gradle项目中使用NDK和STL

    我在将 stlport 链接到 Android Studio 中的 gradle 项目时遇到问题 使用 NDK 的 Eclipse Android 项目迁移到 Android Studio 该项目使用 STL 我有包含内容的 android
  • 如何从 Maven 存储库引用本机 DLL?

    如果 JAR 附带 Maven 存储库中的本机 DLL 我需要在 pom xml 中放入什么才能将该 DLL 放入打包中 更具体地举个例子Jacob http search maven org artifactdetails 7Cnet s
  • 在 RESTful Web 服务中实现注销

    我正在开发一个需要注销服务的移动应用程序 登录服务是通过数据库验证来完成的 现在我陷入了注销状态 退一步 您没有提供有关如何在应用程序中执行身份验证的详细信息 并且很难猜测您在做什么 但是 需要注意的是 在 REST 应用程序中 不能有会话
  • Android 材料芯片组件崩溃应用程序。无法膨胀 xml

    Tried Chip来自两个支持库的组件 com google android support design 28 0 0 rc01和材料 com google android material material 1 0 0 rc01 堆栈

随机推荐

  • 怎么快速学习App后台开发

    本人从去年7月份开始持续到今年2月份 xff0c 终于写完了书籍 App后台开发运维和架构实践 xff0c 这是一本教导刚入行的同学快速学习App后台开发的书籍 你是否遇到下面的情景 xff1f 接到新开发任务 这些功能应该怎么做 xff1
  • 《App后台开发运维和架构实践》前言

    笔者在2012年从开发电子商务网站转向了开发App后台 xff0c 当时在一家做社交App的创业公司里工作 xff0c 笔者和搭档都没有任何从事移动互联网开发的经验 xff0c 不清楚App后台怎么架构 xff0c 只能摸着石头过河 xff
  • 《App后台开发运维和架构实践》推荐序

    软件开发工具的成长速度远远超过开发人员的成长速度 xff0c 这是现实 每个月 xff0c 甚至每天 xff0c 我们都可以见到新的类库 框架 工具 语言 它们或者极大地降低了开发的成本 xff0c 或者极大地提升了开发的效率 随之而来的问
  • 《App 后台开发运维和架构实践》完整目录

    ps xff1a 由于书的目录太长了 xff0c 各大网店 xff08 京东 xff0c 当当 xff0c 亚马逊 xff09 都显示不完整 xff0c 所以这里列出目录的完整版 第1章 App后台入门 16 1 1 App后台的功能 16
  • 《App后台开发运维和架构实践》样章下载

    App后台开发运维和架构实践 样章和目录下载 xff1a 本书前三章的初稿在出书前已经发布网络上 xff0c 可通过下面两种途径获取 xff1a xff08 1 xff09 订阅本人公众号 app后端 xff0c 通过 历史文章 阅读以前的
  • 39.App中用户验证方案

    注 xff1a 这篇文章为15 app后端怎么设计用户登录方案的修改版 xff0c 以前的这篇博客写得太简单了 xff0c 弄得很多同学理解不了 xff0c 趁着写书 App后台开发运维和架构实践 的机会 xff0c 把这篇文章重写了 Ap
  • 电子爱好者必备,强烈推荐这些常用工具

    工欲善其事 xff0c 必先利其器 xff01 要想 DIY xff0c 工具同样重要 xff01 下面按照工具的必须程度从 初学者 至 发烧友 逐级提出建议 xff0c 供大家参考 xff01 首先明确一点 xff1a 本配置是针对电子类
  • 40.用创业思维复盘:写技术博客到出书

    在2013初 xff0c 笔者把过去两年开发app后端的经验总结成十多篇文章发表在博客上 xff0c 那些笔记发表以后的反响出乎本人的意料 xff0c 本人从网络上得到网友的支持和肯定 xff0c 证明这些知识还是有价值 2013年离开了当
  • 41.学习这事没有你想象那么难

    偶尔面试应聘者的时候 xff0c 发现有的应聘者虽然已经毕业一两年了 xff0c 但和他们聊天时 xff0c 觉得他们的技术水平怎么就像刚毕业的情况 xff0c 问他们基础的技术问题好像都不了解 xff1f 但是有的人毕业一两年后 xff0
  • 42.docker简介

    今年京东的618活动 xff0c 京东启动了将近15万个Docker容器 xff0c 这些Docker容器用于商品页 xff0c 订单 xff0c 搜索 xff0c 缓存 xff0c 数据库等服务 为啥docker能在京东大放异彩 xff1
  • 《App后台开发运维和架构实践》勘误

    49页第二行 提示客App 户端程序员 应改为 提示App客户端程序员 57页最后标题 2 PRC 应改为 RPC 61页中间 这个过程就是建立倒序搜引 应改为这个过程就是建立倒序索引 75页表格中 HTTP 请求方式 应为 HTTP 返回
  • golang时间相关的用法总结

    显示当前的时间 格式 34 2006 01 02 15 04 05 34 time Now Format 34 2006 01 02 15 04 05 34 显示当前的时间 格式 34 2006 01 02 15 04 05 232 34
  • 一路有你,倍感幸福!

    1 2012年的夏天 xff0c 一个男孩得知自己一个月后要到上海出差 xff0c 想学个技能以便到上海之后闷骚一把 有一天在网上看到了达芬奇的名字 xff0c 灵光一闪 xff1a 绘画不是逼格爆灯吗 xff1f 男孩兴冲冲地从网上买了一
  • golang: 把sql结果集以json格式输出

    代码出处 xff1a http stackoverflow com questions 19991541 dumping mysql tables to json with golang func getJSON sqlString str
  • mongodb: "Overflow sort stage buffered data usage of 33557904 bytes exceeds internal limit of 33554"

    mongodb报错 xff1a Overflow sort stage buffered data usage of 33557904 bytes exceeds internal limit of 33554432 bytes 这个问题是
  • 奇迹冥想后的奇迹

    lt Font Definitions 64 font face font family 宋体 panose 1 2 1 6 0 3 1 1 1 1 1 mso font alt SimSun mso font charset 134 ms
  • 《五天学会绘画》读后感-1至五章中

    五天学会绘画 xff0c 一个无比俗气的中文名 xff08 这本书的英文名字精准多了 xff1a The New Drawing on the Right Side of the Brain xff0c 大意为 使用右脑的新画画方式 xff
  • 电机驱动TB6612FNG全网断货,可替代方案来了,文末送模块!

    正巧 xff0c 这几天准备设计一款小型mini的小车车 xff0c 准备选用TB6612作为电机驱动 TB6612FNG是一款便宜且性能较好的一款电机驱动 xff0c 单个IC可以用来驱动2个直流减速电机 xff0c 电机电压在6 15V
  • ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open

    最近研究ubuntu xff0c 用apt get命令安装一些软件包时 xff0c 总报错 xff1a E xff1a could not get lock var lib dpkg lock open等 出现这个问题的原因可能是有另外一个
  • Ubuntu 9.10, Java 5 and the Android Open Source Project

    出处 xff1a http blog enea com Blog bid 32050 Ubuntu 9 10 Java 5 and the Android Open Source Project Currently there is an