我对JDK,JRE和JVM的理解[已关闭](My understanding about JDK, JRE and JVM [closed])

深入分析之后,我了解了JDK,JRE和JVM。 如果我错了,请纠正我的错误...

  1. JVM是JRE的子集,JRE是JDK的子集。
  2. JVM用于通过使用JRE将字节代码(* .class)转换为目标代码(机器代码)。
  3. JRE有操作系统(OS)指定由JVM用于字节码转换对象代码的DLL。
  4. 如果明天假设任何新的操作系统将启动,那么当前可用的JRE可能不支持用于字节码到机器码转换的JVM。 因此,JRE可能需要加强以支持即将推出的新操作系统。
  5. 所以从上面的分析中我得出结论,JVM对于所有操作系统都很常见,但JRE具有特定于操作系统的DLL,在字节代码转换过程中JVM将使用该DLL。

After my deep analysis this is how i have understand about JDK, JRE and JVM. Please correct me if i am wrong...

  1. JVM is subset of JRE, JRE is subset of JDK.
  2. JVM is used to convert the byte code (*.class) to object code(machine code) by using JRE.
  3. JRE has Operating System (OS) specify DLL which is used by JVM for byte code to object code conversion.
  4. If suppose tomorrow if any new OS will launch then the currently available JREs may not support the JVM for byte code to machine code conversion. So the JRE may required to enhance to support for the new upcoming OS.
  5. So from the above my analysis i am concluding like JVM is common for all OS but JRE has OS specific DLL which will be used by the JVM during byte code to object code conversion.

原文:https://stackoverflow.com/questions/21914466
2023-06-21 15:06

满意答案

在你的控制器中:

public ActionResult Index()
{
    DataTable dt = new DataTable();
    return View(dt);
}

在您的视图中:只需创建DataTable类型的模型

Inherits="System.Web.Mvc.ViewPage<System.Data.DataTable>"

迭代它:

 <% foreach (System.Data.DataRow row in Model.Rows) { %>

        <%= row["column"].ToString(); %>   

 <%}%>

In your controller:

public ActionResult Index()
{
    DataTable dt = new DataTable();
    return View(dt);
}

In your View: Just make your model of type DataTable

Inherits="System.Web.Mvc.ViewPage<System.Data.DataTable>"

To iterate over it:

 <% foreach (System.Data.DataRow row in Model.Rows) { %>

        <%= row["column"].ToString(); %>   

 <%}%>

相关问答

更多

如何在ASP.Net MVC5中隐藏具有条件的jquery数据表行?(How to hide jquery datatable Rows with conditions in ASP.Net MVC5?)

在您的表定义.dataTable({ ... })您必须添加如下内容 "fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) { if (aData.ToHide == true) { var row = $('td', nRow).closest('tr'); row.data("storeSomeDataToDistinguishTheRowCanBeAnId",...

ASP.Net MVC vs ASP.Net Forms(ASP.Net MVC vs ASP.Net Forms)

WebForms是一种抽象,它隐藏了开发人员的网络机制。 它使桌面开发人员能够相对轻松地将他们的技能转移到Web上。 虽然它的确部分实现了这一点,但在实际情况下,通常在抽象破裂之前不久,人们就必须投入凌乱的替代方案。 单元测试很困难,因为处理用户交互的逻辑与UI紧密结合。 典型的WebForms应用程序生成的HTML远非最佳。 它通常很臃肿,很难阅读,并且包含很多仅允许抽象工作的内容,例如viewstate,这是一个巨大的信息来帮助抽象给开发者带来幻觉,尽管网络是一个无国籍的媒体。 然而,MVC包...

asp.net mvc webforms像gridview(asp.net mvc webforms like gridview)

在我看来,你不应该使用MVC中的任何服务器控件。 你将需要使用一个表并遍历thr所需的对象,MVC允许对HTML进行更多的控制,这样你就需要做更多的工作。 我认为你最好看看NerdDinner的例子。 http://nerddinner.codeplex.com/ 这是一个例子, <table> <% foreach (var category in Model) { %> <tr> <td><%= Html.Encode(category...

asp.net mvc datatable(asp.net mvc datatable)

在你的控制器中: public ActionResult Index() { DataTable dt = new DataTable(); return View(dt); } 在您的视图中:只需创建DataTable类型的模型 Inherits="System.Web.Mvc.ViewPage<System.Data.DataTable>" 迭代它: <% foreach (System.Data.DataRow row in Model.Rows) { %> ...

可以在ASP.NET MVC 3中安装ASP.NET MVC 4吗?(It is okay to install ASP.NET MVC 4 along ASP.NET MVC 3?)

从这个页面: http : //www.asp.net/learn/whitepapers/mvc4-release-notes 将ASP.NET MVC 3项目升级到ASP.NET MVC 4 ASP.NET MVC 4可以在同一台计算机上与ASP.NET MVC 3并行安装,这使您可以灵活地选择何时将ASP.NET MVC 3应用程序升级到ASP.NET MVC 4。 From this page: http://www.asp.net/learn/whitepapers/mvc4-relea...

ASP.NET MVC和Mootools(ASP.NET MVC and Mootools)

我有一个带有Mootools的ASP.NET MVC 示例 。 I have a sample of ASP.NET MVC with Mootools.

Asp.net MVC 1和Asp.net MVC 2之间的区别(Difference between Asp.net MVC 1 and Asp.net MVC 2)

这些页面会告诉你一切: http://bradwilson.typepad.com/presentations/whats-new-in-asp.net-mvc-2.pdf http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx http://live.visitmix.com/MIX10/Sessions/FT04 http://www.asp.net/learn/white...

从控制器发送多个数据表,并在视图asp.net mvc 4中迭代(send multiple datatable from controller and iterate those in view asp.net mvc 4)

最好的方法是创建一个将充当ViewModel的类(一个为您的视图提供服务并为视图提供neede数据的类),然后该类可以根据需要由N个属性组成。 然后你需要在你的控制器中创建一个新类的对象,填写你的类属性(比如你想要的4个数据表)并将这个类对象发送到你的视图,这样你就可以轻松地迭代你的表。 例: public class MyDataViewModel() { public DataTable FirstTable {get; set;} public DataTable SecondTa...

ASP.NET ScriptControl和ASP.NET MVC 3(ASP.NET ScriptControl & ASP.NET MVC 3)

使用jjery.unobtrusive-ajax.js Scriptad脚本使用ajax更常见,使用bundle(仅适用于Mvc4)而不是ScriptManager来管理不同配置的脚本链接以及缩小组合,控制缓存等更为强大 It's more common to use jquery.unobtrusive-ajax.js intead of ScriptManager scripts to use ajax and it's more powerfull to use bundle (only f...

将jQuery DataTable添加到Asp.NET MVC 4项目中(Add jQuery DataTable to Asp.NET MVC 4 project)

问题解决了; D. 我将jQuery脚本添加到App_Start文件夹中的BundleConfig.cs。 **BundleConfig.cs** bundles.Add(new ScriptBundle("~/bundles/table").Include( "~/Scripts/jquery.dataTables.js")); bundles.Add(new StyleBundle("~/Content/themes/base/css"...

相关文章

更多

JDK,JRE,JVM区别与联系

很多朋友可能跟我一样,已经使用JAVA开发很久了,可是对JDK,JRE,JVM这三者的联系与区别,一直 ...

请教:为什么java的JDK安装不了???

在我的机子上安装jDK很正常,但是我给同学安装的时候就出现问题了 ,安装了很多次还是那样: 1.在我 ...

如何查看自己机器上的JVM的版本

做web开发的时候下载jdk然后安装,现在想知道自己的JVM版本,却找不到。

JDK自带监控工具

系统在生产运行过程中最重要的工作莫过于监控与问题的处理,监控是预防问题产生很重要的手段。在监控过程中可 ...

JVM crash. 请帮忙分析一些可能是什么原因

Unexpected Signal : 10 occurred at PC=0x283E1CB6 F ...

远程监控JVM--VisualVM

对于使用命令行远程监控jvm太麻烦?那可以试试sun提供的VisualVM,jdk1.6自带了,可以到 ...

myeclipse想使用本地的jdk来编译文件怎么设置

1.自己在c盘安装了jdk和jre,同时也安装了myeclipse,但是希望可以在myeclipse是 ...

1.jdk、Tomcat、solr的安装和配置

1.jdk安装和配置 1)根据电脑类型,到官网下载相应的jdk版本 2)双击jdk-8u5-w ...

请问jre是如何找到系统的字体的?

我现在的操作系统是ubuntu9.10 amd64 用的是java-6-openjdk 为什么我修 ...

Storm JVM 参数优化

在配置文件storm.yaml中,有: # to nimbus nimbus.childopts: & ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本